コード例 #1
0
ファイル: BookController.cs プロジェクト: Gcobani/urbanbooks
        public ActionResult Restore(int ProductID, AddNewTechViewModel model, FormCollection collection)
        {
            try
            {
                myHandler = new BusinessLogicHandler();
                book = new Book();
                book.ProductID = ProductID;
                myHandler.RestoreBook(book);

                TempData["Alert Message"] = "Device Successfully Restored";

                return RedirectToAction("DeletedIndex", "Book");
            }

            catch
            {
                return View();
            }
        }