Example #1
0
 public async Task <IActionResult> GetByPostId(Guid id)
 {
     try
     {
         if (id == Guid.Empty)
         {
             return(NotFound());
         }
         return(Ok(await _postCategoryServices.GetPostCategoriesByPostIdAsync(id)));
     }
     catch (Exception e)
     {
         _logger.LogError(e, e.Message);
         return(BadRequest());
     }
 }