public async Task <ActionResult> Edit(RssAdminViewModel rssViewModel) { if (ModelState.IsValid) { var rss = _rssMapper.ToRss(rssViewModel); await _rssProvider.EditRssAsync(rss); return(RedirectToAction("Index")); } return(View(rssViewModel)); }
public Rss ToRss(RssAdminViewModel rssViewModel) { return(_mapper.Map <RssAdminViewModel, Rss>(rssViewModel)); }