Exemplo n.º 1
0
        public HttpResponseMessage Get(int id)
        {
            ItemResponse <Tag> response = new ItemResponse <Tag>();

            response.Item = _tagsService.Get(id);
            return(Request.CreateResponse(response));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        public ActionResult Details(string name)
        {
            var item = _tagsService.Get(name).ToViewModel();

            if (User.Identity.IsAuthenticated)
            {
                ViewBag.CurrentUser = _currentUserService.CurrentUserDTO.ToViewModel();
            }

            return(View(item));
        }
Exemplo n.º 4
0
 public List <TagVM> Get()
 {
     return(_service.Get());
 }
Exemplo n.º 5
0
 public TagViewModel Get(string name)
 {
     return(_tagsService.Get(name).ToViewModel());
 }
        public IActionResult Index()
        {
            var tagViewModels = tagsService.Get();

            return(View(tagViewModels));
        }
Exemplo n.º 7
0
 public TagViewModel Get(string name)
 {
     return(TagsMapper.Map(_tagsService.Get(name)));
 }