Example #1
0
 public ActionResult Edit(BookCategory bc)
 {
     try
     {
         myHandler = new BusinessLogicHandler();
         typeOf = new BookCategory();
         TryUpdateModel(bc);
         if (ModelState.IsValid)
         {
             myHandler.UpdateBookType(bc);
         }
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }