예제 #1
0
 public IActionResult GetDateToNumberOfApprovedMemes()
 {
     try
     {
         var numberOfApprovals = _memeService.GetDateToNumberOfApprovedMemes();
         return(Ok(numberOfApprovals));
     }
     catch (AppException ex)
     {
         // return error message if there was an exception
         return(BadRequest(new { message = ex.Message }));
     }
 }