public ActionResult Delete(int id) { repo.Delete(id); ViewBag.Select = repo.Select(); return(RedirectToAction("Index")); }
public ActionResult <Models.Telephone> Delete(Models.Telephone telephone) { repo.Delete(telephone.Id); return(Ok(telephone)); }