public async Task <ActionResult> Tag(TagAdminViewModel tagViewModel)
        {
            var tag = _tagMapper.ToTag(tagViewModel);
            await _tagProvider.ChangeTagAsync(tag);

            return(RedirectToAction("listTags", "Home"));
        }
Esempio n. 2
0
 public Tag ToTag(TagAdminViewModel tagViewModel)
 {
     return(_mapper.Map <TagAdminViewModel, Tag>(tagViewModel));
 }