Пример #1
0
 public ActionResult <List <TagData> > GetAllTags()
 {
     try
     {
         var tags = threadService.GetAllTags();
         return(tags.Select(mapper.Map <TagData>).ToList());
     }
     catch (Exception e)
     {
         return(BadRequest(new { error = e.Message }));
     }
 }