Пример #1
0
 public ActionResult DeleteSave(string id)
 {
     phoneBookContext = new PhoneBookContext();
     phoneBookContext.Delete(Guid.Parse(id));
     ViewBag.PhoneBooks = phoneBookContext.PhoneBooks;
     return(View("Index"));
 }
Пример #2
0
 public ActionResult DeleteSave(string id)
 {
     phoneBookContext = new PhoneBookContext(Server.MapPath("~/Models/Data.json"));
     phoneBookContext.Delete(Guid.Parse(id));
     ViewBag.PhoneBooks = phoneBookContext.PhoneBooks;
     return(View("Index"));
 }