public HttpResponseMessage Get(int id) { ItemResponse <Tag> response = new ItemResponse <Tag>(); response.Item = _tagsService.Get(id); return(Request.CreateResponse(response)); }
public ActionResult Details(string name) { TagViewModel item = TagsMapper.Map(_tagsService.Get(name)); if (User.Identity.IsAuthenticated) { ViewBag.CurrentUser = UsersMapper.Map(_currentUserService.GetDTO); } return(View(item)); }
public ActionResult Details(string name) { var item = _tagsService.Get(name).ToViewModel(); if (User.Identity.IsAuthenticated) { ViewBag.CurrentUser = _currentUserService.CurrentUserDTO.ToViewModel(); } return(View(item)); }
public List <TagVM> Get() { return(_service.Get()); }
public TagViewModel Get(string name) { return(_tagsService.Get(name).ToViewModel()); }
public IActionResult Index() { var tagViewModels = tagsService.Get(); return(View(tagViewModels)); }
public TagViewModel Get(string name) { return(TagsMapper.Map(_tagsService.Get(name))); }