Example #1
0
 public async Task <IActionResult> GetByCategoryId(Guid id)
 {
     try
     {
         return(Ok(await _postCategoryServices.GetPostCategoriesByCategoryIdAsync(id)));
     }
     catch (Exception e)
     {
         _logger.LogError(e, e.Message);
         return(BadRequest());
     }
 }