public TipoServicioResponse LeerPorId(int id)
 {
     try
     {
         var response = new TipoServicioResponse();
         var bc       = new TipoServicioComponent();
         response.Result = bc.Find(id);
         return(response);
     }
     catch (Exception ex)
     {
         var httpError = new HttpResponseMessage()
         {
             StatusCode   = (HttpStatusCode)422,
             ReasonPhrase = ex.Message
         };
         throw new HttpResponseException(httpError);
     }
 }
Example #2
0
        public TipoServicio Find(int?id)
        {
            var bc = new TipoServicioComponent();

            return(bc.Find(id));
        }