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