public static IProcessAction Create(ApprovalStatus status) { IProcessAction action = null; switch (status) { case ApprovalStatus.Agree: action = new AgreeProcessAction(); break; case ApprovalStatus.Disagree: action = new DisagreeProcessAction(); break; case ApprovalStatus.None: action = new NextProcessAction(); break; } return action; }
public static IProcessAction Create(ApprovalStatus status) { IProcessAction action = null; switch (status) { case ApprovalStatus.Agree: action = new AgreeProcessAction(); break; case ApprovalStatus.Disagree: action = new DisagreeProcessAction(); break; case ApprovalStatus.None: action = new NextProcessAction(); break; } return(action); }