public IHttpActionResult EliminarInvestigacionInstitucional(string investigacion) { InvestigacionHandler handler = new InvestigacionHandler(); try { return(Content(HttpStatusCode.OK, handler.EliminarInvestigacionInstitucional(investigacion))); } catch (Exception ex) { return(Content(HttpStatusCode.InternalServerError, ex.Message)); } }
public IHttpActionResult ConsultarInvestigacionesIns() { InvestigacionHandler handler = new InvestigacionHandler(); try { return(Content(HttpStatusCode.OK, handler.ConsultarInvestigacionIns())); } catch (Exception ex) { return(Content(HttpStatusCode.InternalServerError, ex.Message)); } }
public IHttpActionResult MergeInvestigacion([FromBody] InvInstitucional investigacion) { InvestigacionHandler handler = new InvestigacionHandler(); try { return(Content(HttpStatusCode.OK, handler.MergeInvestigacion(investigacion))); } catch (Exception ex) { return(Content(HttpStatusCode.InternalServerError, ex.Message)); } }