Exemple #1
0
        public ActionResult Get()
        {
            TagDTO tagDto = new TagDTO();

            tagDto.Tags = _tagsService.GetAllTags();
            return(Ok(tagDto));
        }
Exemple #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());
     }
 }
Exemple #3
0
 public IHttpActionResult GetAllTags()
 {
     return(Ok(tagService.GetAllTags()));
 }