/// <summary> /// Initializes a new instance of the <see cref="ApprovalProcessStageModel" /> class. /// </summary> /// <param name="approveOrder">approveOrder.</param> /// <param name="approvers">approvers.</param> /// <param name="description">description.</param> /// <param name="name">name.</param> /// <param name="isAllowAutocrat">isAllowAutocrat.</param> /// <param name="isAllowReassign">isAllowReassign.</param> /// <param name="durationSetting">durationSetting.</param> /// <param name="emailSetting">emailSetting.</param> public ApprovalProcessStageModel(ApproveOrder approveOrder = default(ApproveOrder), List <ApiUser> approvers = default(List <ApiUser>), string description = default(string), string name = default(string), bool isAllowAutocrat = default(bool), bool isAllowReassign = default(bool), ApprovalProcessStageDurationSetting durationSetting = default(ApprovalProcessStageDurationSetting), ApprovalProcessStageEmailSetting emailSetting = default(ApprovalProcessStageEmailSetting)) { this.ApproveOrder = approveOrder; this.Approvers = approvers; this.Description = description; this.Name = name; this.IsAllowAutocrat = isAllowAutocrat; this.IsAllowReassign = isAllowReassign; this.DurationSetting = durationSetting; this.EmailSetting = emailSetting; }
public async Task <IActionResult> Complete(Guid id, ApproveOrder command) => await SendAsync(command.Bind(c => c.Id, id), resourceId : command.Id, resource : "orders");
public void Approve([FromBody] ApproveOrder command) { this.orderApprover.Execute(command); }