Esempio n. 1
0
 public ActionResult DeleteSave(string id)
 {
     phoneBookContext = new PhoneBookContext();
     phoneBookContext.Delete(Guid.Parse(id));
     ViewBag.PhoneBooks = phoneBookContext.PhoneBooks;
     return(View("Index"));
 }
Esempio n. 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"));
 }