Example #1
0
 public IActionResult GetLoadById(string id)
 {
     try
     {
         var load = _loadService.GetLoadByCustomerReferenceId(id, customerId: _user.UserId.Value);
         return(Success(_mapper.Map <LoadDetailViewModel>(load)));
     }
     catch (ValidationException e)
     {
         return(Error <List <LoadDetailViewModel> >(e));
     }
 }