public ActionResult Delete(int id) { productRepo.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { var result = trainRepo.Delete(id); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { var result = corRepository.Delete(id); return(RedirectToAction("Index")); }
/// <summary> /// http://localhost:<PORT>/api/CategoryAPI/{id} /// </summary> /// <returns></returns> public IHttpActionResult Delete(int id) { var result = catRepository.Delete(id); return(Ok(result)); }