public ActionResult DeleteAndReturnJson(string name) { MyMockDataStorage.Remove(new Book() { BookName = name }); return(Json(new { status = "success", id = name })); }
public ActionResult DeleteAndReturnJList(string name) { MyMockDataStorage.Remove(new Book() { BookName = name }); var list = MyMockDataStorage.GetAll(); return(PartialView("_BookList", list)); }