コード例 #1
0
 public MovimientoResponse LeerPorId(int id)
 {
     try
     {
         var response = new MovimientoResponse();
         var bc       = new MovimientoComponent();
         response.Result = bc.Find(id);
         return(response);
     }
     catch (Exception ex)
     {
         var httpError = new HttpResponseMessage()
         {
             StatusCode   = (HttpStatusCode)422,
             ReasonPhrase = ex.Message
         };
         throw new HttpResponseException(httpError);
     }
 }
コード例 #2
0
        public Movimiento Find(int?id)
        {
            var bc = new MovimientoComponent();

            return(bc.Find(id));
        }