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

            response.Item = _tagsService.Get(id);
            return(Request.CreateResponse(response));
        }
Esempio 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));
        }
Esempio 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));
        }
Esempio n. 4
0
 public List <TagVM> Get()
 {
     return(_service.Get());
 }
Esempio n. 5
0
 public TagViewModel Get(string name)
 {
     return(_tagsService.Get(name).ToViewModel());
 }
        public IActionResult Index()
        {
            var tagViewModels = tagsService.Get();

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