public async Task <ActionResult> GetGarageByUser(int userId) { try { List <GarageDto> garageList = await _garageService.GetGarageByUser(userId); return(Response.Ok(garageList)); } catch (BaseException e) { _logger.LogInformation(ExceptionHandlerHelper.ExceptionMessageStringToLogger(e)); return(Response.HandleExceptions(e)); } catch (Exception e) { _logger.LogError(e, GetType().Name + "." + MethodBase.GetCurrentMethod().Name); return(Response.InternalServerError()); } }