public ActionResult Edit(EditPublishingHouseViewModel view)
        {
            var publishingHouse = _publishingHouseRepository.GetByID(view.Id);

            publishingHouse.PublishingHouseName = view.Name;
            _publishingHouseRepository.Update(publishingHouse);
            _publishingHouseRepository.Save();
            return(RedirectToAction("Index", "PublishingHouse"));
        }
        public ActionResult Edit(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(RedirectToAction("Index", "PublishingHouse"));
            }
            var view            = new EditPublishingHouseViewModel();
            var publishingHouse = _publishingHouseRepository.GetByID(id);

            view.Name = publishingHouse.PublishingHouseName;
            return(View(view));
        }