public IActionResult GetAllOpenLoads() { try { var loads = _loadService.GetAllOpenLoadsByCustomerId(customerId: _user.UserId.Value); return(Success(_mapper.Map <List <LoadDetailViewModel> >(loads))); } catch (ValidationException e) { return(Error <List <LoadDetailViewModel> >(e)); } }