コード例 #1
0
        public async Task <ActionResult> Tag(TagAdminViewModel tagViewModel)
        {
            var tag = _tagMapper.ToTag(tagViewModel);
            await _tagProvider.ChangeTagAsync(tag);

            return(RedirectToAction("listTags", "Home"));
        }
コード例 #2
0
 public Tag ToTag(TagAdminViewModel tagViewModel)
 {
     return(_mapper.Map <TagAdminViewModel, Tag>(tagViewModel));
 }