Ejemplo n.º 1
0
        public IActionResult Edit(Book book)
        {
            BookManager manager = new BookManager();

            manager.Update(book);

            CacheNinja ninja = new CacheNinja();

            ninja.ClearCache("Book_GetAll");
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public IActionResult Add(Book book)
        {
            BookManager bookManager = new BookManager();

            bookManager.Insert(book);

            CacheNinja ninja = new CacheNinja();

            ninja.ClearCache("Book_GetAll");
            return(RedirectToAction("Index"));
        }