public IActionResult Cancel(int id) { rpservice.ChangeRFStatusToCancelledById(id); RequisitionForm rf = rpservice.FindRequisitionFormById(id); return(Ok(rf)); }
public IActionResult Cancel([FromRoute] int id) { System.Diagnostics.Debug.WriteLine(id); rpService.ChangeRFStatusToCancelledById(id); return(RedirectToAction("Summary")); }