public HttpResponseMessage Put_Agenda(Actividades_del_Evento varActividades_del_Evento_Agenda) { var data = "-1"; try { data = Convert.ToString(this.service.Update_Agenda(varActividades_del_Evento_Agenda)); var bitacora = BitacoraHelper.GetBitacora(Request, object_id, varActividades_del_Evento_Agenda.Folio, BitacoraHelper.TypeSql.UPDATE, "sp_UpdActividades_del_Evento", new JavaScriptSerializer().Serialize(varActividades_del_Evento_Agenda), true); serviceBitacora.Insert(bitacora); } catch (ServiceException ex) { var bitacora = BitacoraHelper.GetBitacora(Request, object_id, varActividades_del_Evento_Agenda.Folio, BitacoraHelper.TypeSql.UPDATE, "sp_UpdActividades_del_Evento", new JavaScriptSerializer().Serialize(varActividades_del_Evento_Agenda), false, ex.Message); serviceBitacora.Insert(bitacora); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage Put_Datos_Generales(Detalle_Facturacion_Especialistas varDetalle_Facturacion_Especialistas_Datos_Generales) { var data = "-1"; try { data = Convert.ToString(this.service.Update_Datos_Generales(varDetalle_Facturacion_Especialistas_Datos_Generales)); var bitacora = BitacoraHelper.GetBitacora(Request, object_id, varDetalle_Facturacion_Especialistas_Datos_Generales.Folio, BitacoraHelper.TypeSql.UPDATE, "sp_UpdDetalle_Facturacion_Especialistas", new JavaScriptSerializer().Serialize(varDetalle_Facturacion_Especialistas_Datos_Generales), true); serviceBitacora.Insert(bitacora); } catch (ServiceException ex) { var bitacora = BitacoraHelper.GetBitacora(Request, object_id, varDetalle_Facturacion_Especialistas_Datos_Generales.Folio, BitacoraHelper.TypeSql.UPDATE, "sp_UpdDetalle_Facturacion_Especialistas", new JavaScriptSerializer().Serialize(varDetalle_Facturacion_Especialistas_Datos_Generales), false, ex.Message); serviceBitacora.Insert(bitacora); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage MS_Semanas_PlanesGenerateID() { MS_Semanas_Planes varMS_Semanas_Planes = new MS_Semanas_Planes(); var data = "-1"; try { data = Convert.ToString(this.service.Insert(varMS_Semanas_Planes)); var bitacora = BitacoraHelper.GetBitacora(Request, object_id, Convert.ToInt32(data), BitacoraHelper.TypeSql.INSERT, "sp_MS_Semanas_PlanesGenerateID", new JavaScriptSerializer().Serialize(varMS_Semanas_Planes), true); serviceBitacora.Insert(bitacora); } catch (ServiceException ex) { var bitacora = BitacoraHelper.GetBitacora(Request, object_id, 0, BitacoraHelper.TypeSql.INSERT, "sp_MS_Semanas_PlanesGenerateID", new JavaScriptSerializer().Serialize(varMS_Semanas_Planes), true); serviceBitacora.Insert(bitacora); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage Detalle_Consulta_Actividades_Registro_EventoGenerateID() { Detalle_Consulta_Actividades_Registro_Evento varDetalle_Consulta_Actividades_Registro_Evento = new Detalle_Consulta_Actividades_Registro_Evento(); var data = "-1"; try { data = Convert.ToString(this.service.Insert(varDetalle_Consulta_Actividades_Registro_Evento)); var bitacora = BitacoraHelper.GetBitacora(Request, object_id, Convert.ToInt32(data), BitacoraHelper.TypeSql.INSERT, "sp_Detalle_Consulta_Actividades_Registro_EventoGenerateID", new JavaScriptSerializer().Serialize(varDetalle_Consulta_Actividades_Registro_Evento), true); serviceBitacora.Insert(bitacora); } catch (ServiceException ex) { var bitacora = BitacoraHelper.GetBitacora(Request, object_id, 0, BitacoraHelper.TypeSql.INSERT, "sp_Detalle_Consulta_Actividades_Registro_EventoGenerateID", new JavaScriptSerializer().Serialize(varDetalle_Consulta_Actividades_Registro_Evento), true); serviceBitacora.Insert(bitacora); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage Interpretacion_Frecuencia_cardiaca_en_EsfuerzoGenerateID() { Interpretacion_Frecuencia_cardiaca_en_Esfuerzo varInterpretacion_Frecuencia_cardiaca_en_Esfuerzo = new Interpretacion_Frecuencia_cardiaca_en_Esfuerzo(); var data = "-1"; try { data = Convert.ToString(this.service.Insert(varInterpretacion_Frecuencia_cardiaca_en_Esfuerzo)); var bitacora = BitacoraHelper.GetBitacora(Request, object_id, Convert.ToInt32(data), BitacoraHelper.TypeSql.INSERT, "sp_Interpretacion_Frecuencia_cardiaca_en_EsfuerzoGenerateID", new JavaScriptSerializer().Serialize(varInterpretacion_Frecuencia_cardiaca_en_Esfuerzo), true); serviceBitacora.Insert(bitacora); } catch (ServiceException ex) { var bitacora = BitacoraHelper.GetBitacora(Request, object_id, 0, BitacoraHelper.TypeSql.INSERT, "sp_Interpretacion_Frecuencia_cardiaca_en_EsfuerzoGenerateID", new JavaScriptSerializer().Serialize(varInterpretacion_Frecuencia_cardiaca_en_Esfuerzo), true); serviceBitacora.Insert(bitacora); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage Tipo_de_Recordatorio_NotificacionGenerateID() { Tipo_de_Recordatorio_Notificacion varTipo_de_Recordatorio_Notificacion = new Tipo_de_Recordatorio_Notificacion(); var data = "-1"; try { data = Convert.ToString(this.service.Insert(varTipo_de_Recordatorio_Notificacion)); var bitacora = BitacoraHelper.GetBitacora(Request, object_id, Convert.ToInt32(data), BitacoraHelper.TypeSql.INSERT, "sp_Tipo_de_Recordatorio_NotificacionGenerateID", new JavaScriptSerializer().Serialize(varTipo_de_Recordatorio_Notificacion), true); serviceBitacora.Insert(bitacora); } catch (ServiceException ex) { var bitacora = BitacoraHelper.GetBitacora(Request, object_id, 0, BitacoraHelper.TypeSql.INSERT, "sp_Tipo_de_Recordatorio_NotificacionGenerateID", new JavaScriptSerializer().Serialize(varTipo_de_Recordatorio_Notificacion), true); serviceBitacora.Insert(bitacora); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter)); }
public HttpResponseMessage Registro_de_Asistencia_TelefonicaGenerateID() { Registro_de_Asistencia_Telefonica varRegistro_de_Asistencia_Telefonica = new Registro_de_Asistencia_Telefonica(); var data = "-1"; try { data = Convert.ToString(this.service.Insert(varRegistro_de_Asistencia_Telefonica)); var bitacora = BitacoraHelper.GetBitacora(Request, object_id, Convert.ToInt32(data), BitacoraHelper.TypeSql.INSERT, "sp_Registro_de_Asistencia_TelefonicaGenerateID", new JavaScriptSerializer().Serialize(varRegistro_de_Asistencia_Telefonica), true); serviceBitacora.Insert(bitacora); } catch (ServiceException ex) { var bitacora = BitacoraHelper.GetBitacora(Request, object_id, 0, BitacoraHelper.TypeSql.INSERT, "sp_Registro_de_Asistencia_TelefonicaGenerateID", new JavaScriptSerializer().Serialize(varRegistro_de_Asistencia_Telefonica), true); serviceBitacora.Insert(bitacora); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter)); }