public IActionResult Approve([FromBody] RequisitionViewModel rVModel) { bool status = rpservice.ChangeRFStatusToApprovedById(rVModel.requisitionForm, rVModel.rfpList, rVModel.employee, rVModel.RFHeadReply); if (status is true) { return(Ok(rVModel)); } else { return(null); } }
public IActionResult Approve([FromBody] RequisitionViewModel rVModel) { bool status = rpService.ChangeRFStatusToApprovedById(rVModel.requisitionForm, rVModel.rfpList, rVModel.employee, rVModel.RFHeadReply); if (status is true) { return(new JsonResult(new { success = "Success" })); } else { return(new JsonResult(new { success = "Failure" })); } }