Esempio n. 1
0
 public HttpResponseMessage GuardaPlanaccionRevision(EDPlanAccionRevision planaccionrev)
 {
     try
     {
         var logica = new LNRevision();
         var result = logica.GrabarPlanAccionRevision(planaccionrev);
         if (result != null)
         {
             var response = Request.CreateResponse <EDPlanAccionRevision>(HttpStatusCode.Created, result);
             return(response);
         }
         else
         {
             var response = Request.CreateResponse(HttpStatusCode.ExpectationFailed);
             return(response);
         }
     }
     catch (Exception ex)
     {
         var response = Request.CreateResponse(HttpStatusCode.InternalServerError);
         return(response);
     }
 }
Esempio n. 2
0
 public EDPlanAccionRevision GrabarPlanAccionRevision(EDPlanAccionRevision planaccionrev)
 {
     return(em.GrabarPlanAccionRevision(planaccionrev));
 }