// GET: Product/Delete/5
        public ActionResult Delete(int id)
        {
            ProductDetailsViewModel model = new ProductDetailsViewModel();
            model.Product = bm.GetProductById(id);

            return View(model);
        }
        // GET: Product/Details/5
        public ActionResult Details(int id)
        {
            ProductDetailsViewModel model = new ProductDetailsViewModel();
            model.Product = bm.GetProductById(id);
            model.Category = bm.GetCategoryById(model.Product.CategoryId);

            return View(model);
        }
        public ActionResult Delete(int id, ProductDetailsViewModel model)
        {
            try
            {
                bm.DeleteProduct(model.Product.Id);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }