Exemple #1
0
        public ActionResult DeleteAndReturnJson(string name)
        {
            MyMockDataStorage.Remove(new Book()
            {
                BookName = name
            });

            return(Json(new { status = "success", id = name }));
        }
Exemple #2
0
        public ActionResult DeleteAndReturnJList(string name)
        {
            MyMockDataStorage.Remove(new Book()
            {
                BookName = name
            });
            var list = MyMockDataStorage.GetAll();

            return(PartialView("_BookList", list));
        }