public Notificacion <Object> RegitrarSocioAsamblea(RequestRegistrarSocioAsamblea request) { Notificacion <Object> notificacion = null; try { notificacion = new Notificacion <Object>(); using (db = new DBManager(ConfigurationManager.AppSettings["conexionString"].ToString())) { db.Open(); db.CreateParameters(3); db.AddParameters(0, "@idSocio", request.IdSocio); db.AddParameters(1, "@idAsamblea", request.IdAsamblea); db.AddParameters(2, "@Asistencia", request.Asistencia); db.ExecuteReader(System.Data.CommandType.StoredProcedure, "SP_REGISTRAR_SOCIO_EN_ASAMBLEA"); if (db.DataReader.Read()) { Socio s = null;; notificacion.Model = request; notificacion.Estatus = Convert.ToInt32(db.DataReader["estatus"].ToString()); notificacion.Mensaje = db.DataReader["mensaje"].ToString(); } } } catch (Exception ex) { throw ex; } return(notificacion); }
public JsonResult RegitrarSocioAsamblea(RequestRegistrarSocioAsamblea request) { try { Notificacion <Object> n = new AsambleaDAO().RegitrarSocioAsamblea(request); return(new JsonResult() { Data = n, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public Notificacion <RequestRegistrarSocioAsamblea> RegitrarSocioAsambleaDesdeAPP(RequestRegistrarSocioAsamblea request) { try { return(new AsambleaDAO().RegitrarSocioAsambleaDesdeAPP(request)); } catch (Exception ex) { throw new FaultException(ex.Message); } }