Exemple #1
0
 public IActionResult Get()
 {
     try {
         return(Ok(_viewRepository.GetAllTasks()));
     } catch (Exception ex)
     {
         _logger.LogError("Error in get", ex);
         return(BadRequest());
     }
 }