public ActionResult Get() { TagDTO tagDto = new TagDTO(); tagDto.Tags = _tagsService.GetAllTags(); return(Ok(tagDto)); }
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()); } }
public IHttpActionResult GetAllTags() { return(Ok(tagService.GetAllTags())); }