public async Task <ActionResult> GetAll() { try { return(Ok(await _trailService.GetAll())); } catch (Exception e) { return(StatusCode((int)HttpStatusCode.InternalServerError, e.Message)); } }
public async Task <ActionResult> GetAll() { try { return(Ok(await _trailService.GetAll())); } catch (Exception e) { return(StatusCode((int)HttpStatusCode.InternalServerError, e.Message)); } }