Beispiel #1
0
 public async Task <IActionResult> GetGolfCourse([FromRoute] User user)
 {
     try
     {
         return(Ok(await _context.GetUserZonesAsync(user)));
     }
     catch (ArgumentException e)
     {
         return(BadRequest(new { error = e.Message }));
     }
 }