public IActionResult SaveDF([FromBody] DisbursementViewModel dfViewModel) { bool status = disbursementFormService.CreateDisbursementForm(dfViewModel.srrfAssignedList, dfViewModel.employee, dfViewModel.comment); if (status) { return(Ok(dfViewModel)); } else { return(null); } }
public IActionResult CreateDF([FromBody] DisbursementViewModel dVModel) { bool status = dfService.CreateDisbursementForm(dVModel.srrfAssignedList, dVModel.employee, dVModel.comment); if (status is true) { return(new JsonResult(new { success = "Success" })); } else { return(new JsonResult(new { success = "Failure" })); } }