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