public void UpdatePaperPublishHouse(EditPaperPublishHouseViewModel tempNewsPaper)
        {
            var newsPaper = new PaperPublishHouses();

            Mapper.Map(tempNewsPaper, newsPaper);
            _publishHouseRepository.Update(newsPaper);
        }
示例#2
0
 public ActionResult Edit(EditPaperPublishHouseViewModel paperPublishHous)
 {
     if (ModelState.IsValid)
     {
         _publishHouseService.UpdatePaperPublishHouse(paperPublishHous);
         return(RedirectToAction("Index", "Base"));
     }
     return(View(paperPublishHous));
 }