public ActionResult Delete(int id)
        {
            BDactions BDaction   = new BDactions();
            Pet       deletedPet = BDaction.DeletePet(id);

            if (deletedPet != null)
            {
                TempData["message"] = string.Format(" \"{0}\" была удалена",
                                                    deletedPet.Name);
            }
            return(RedirectToAction("Info"));
        }
        public ActionResult Edit(Pet pet, HttpPostedFileBase [] images = null)
        {
            BDactions BDaction = new BDactions();

            if (ModelState.IsValid)
            {
                BDaction.SavePet(pet, images);
                TempData["message"] = string.Format("Изменения \"{0}\" были сохранены", pet.Name);
                return(RedirectToAction("Info"));
            }
            else
            {
                // Что-то не так со значениями данных
                return(View(pet));
            }
        }