using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Learun.Application.TwoDevelopment.EducationalAdministration; namespace Learun.Application.WorkFlow { public class StudentCompetitionMethod : IWorkFlowMethod { StudentCompetitionIBLL asset = new StudentCompetitionBLL(); public void Execute(WfMethodParameter parameter) { if (parameter.code == "agree") { asset.ChangeStatusByProcessId(parameter.processId, 2); } else { asset.ChangeStatusByProcessId(parameter.processId, 0); } } } }