public async Task <ActionResult> Tag(TagAdminViewModel tagViewModel) { var tag = _tagMapper.ToTag(tagViewModel); await _tagProvider.ChangeTagAsync(tag); return(RedirectToAction("listTags", "Home")); }
public Tag ToTag(TagAdminViewModel tagViewModel) { return(_mapper.Map <TagAdminViewModel, Tag>(tagViewModel)); }