public void Edit(string orgId, string comCode, string adUser) { try { var response = _approval.Edit(new CentralSetting.Bll.Models.ApprovalViewModel { Id = 1, PurchasingOrg = orgId, PurchasingOrgName = comCode, ApprovalList = new List <CentralSetting.Bll.Models.ApprovalItemViewModel> { new CentralSetting.Bll.Models.ApprovalItemViewModel { AdUser = adUser, Step = 1 } } }); Console.WriteLine(response); } catch (Exception ex) { Assert.True(false, ex.Message); } }
public IActionResult Edit([FromBody] ApprovalViewModel model) { return(Ok(_approval.Edit(model))); }