public IHttpActionResult DeleteOwner(int id) { var owner = _repo.RemoveOwner(id); return(Ok(owner)); }
public ActionResult DeleteConfirmed(int id) { repo.RemoveOwner(id); return(RedirectToAction("Index")); }
public IHttpActionResult DeleteOwner(int id) { var owner = _repo.RemoveOwner(id); return(Ok(owner)); }
public ActionResult DeleteConfirmed(int id) { repo.RemoveOwner(id); return(RedirectToAction("Index")); }