示例#1
0
 public ClientMovementResponse GetByClient(int id)
 {
     try
     {
         var response = new ClientMovementResponse();
         var bc       = new MovementComponent();
         response.Result = bc.Find(id);
         return(response);
     }
     catch (Exception ex)
     {
         var httpError = new HttpResponseMessage()
         {
             StatusCode   = (HttpStatusCode)422,
             ReasonPhrase = ex.Message
         };
         throw new HttpResponseException(httpError);
     }
 }