Пример #1
0
 public ActionResult <List <TaskDto> > GenerateRandomTasks()
 {
     try
     {
         var now         = DateTime.Parse(HttpContext.Request.Query["now"].ToString());
         var randomTasks = _repository.GenerateRandomTasks(now);
         return(Ok(randomTasks));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex));
     }
 }