public IActionResult Insert(PublisherInsertViewModel model) { var entity = _mapper.Map <Publisher>(model); _publisherService.Insert(entity); return(View(model)); }
public IActionResult Insert(PublisherInsertViewModel model) { var entity = _mapper.Map <Publisher>(model); var affectedRowsCount = _service.Add(entity); ViewData["AffectedRowsCount"] = affectedRowsCount; return(View(model)); }