public void UpdatePaperPublishHouse(EditPaperPublishHouseViewModel tempNewsPaper) { var newsPaper = new PaperPublishHouses(); Mapper.Map(tempNewsPaper, newsPaper); _publishHouseRepository.Update(newsPaper); }
public ActionResult Edit(EditPaperPublishHouseViewModel paperPublishHous) { if (ModelState.IsValid) { _publishHouseService.UpdatePaperPublishHouse(paperPublishHous); return(RedirectToAction("Index", "Base")); } return(View(paperPublishHous)); }