public IActionResult Delete(int id) { var result = _schemeMaster.DeleteScheme(id); if (result) { return(Ok()); } else { return(BadRequest()); } }
public HttpResponseMessage Delete(int id) { var result = _schemeMaster.DeleteScheme(id); if (result) { var response = new HttpResponseMessage() { StatusCode = HttpStatusCode.OK }; return(response); } else { var response = new HttpResponseMessage() { StatusCode = HttpStatusCode.BadRequest }; return(response); } }
public ActionResult Delete(string ID) { objISchemeMaster.DeleteScheme(ID); return(RedirectToAction("Details")); }