Example #1
0
 public async Task <ActionResult <CampResource[]> > Get()
 {
     try
     {
         return(Ok(await _campService.GetAllCampsAsync()));
     }
     catch (Exception ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, "Error Occured when processing your request"));
     }
 }