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); } }
public EDPlanAccionRevision GrabarPlanAccionRevision(EDPlanAccionRevision planaccionrev) { return(em.GrabarPlanAccionRevision(planaccionrev)); }