Exemplo n.º 1
0
        public ActionResult Get()
        {
            TagDTO tagDto = new TagDTO();

            tagDto.Tags = _tagsService.GetAllTags();
            return(Ok(tagDto));
        }
Exemplo n.º 2
0
 public ActionResult GetTags()
 {
     try
     {
         return(new JsonResult(new
         {
             success = new
             {
                 tags = _tagsService.GetAllTags().ToArray()
             }
         }));
     }
     catch (Exception ex)
     {
         _log.LogError(ex, "An unexpected error occurred.");
         return(Responses.UnexpectedError());
     }
 }
Exemplo n.º 3
0
 public IHttpActionResult GetAllTags()
 {
     return(Ok(tagService.GetAllTags()));
 }