Beispiel #1
0
 public Notificacion <RequestVotarAcuerdo> VotarAcuerdo(RequestVotarAcuerdo request)
 {
     try
     {
         Notificacion <RequestVotarAcuerdo> notificacion = new Notificacion <RequestVotarAcuerdo>();
         notificacion = new AcuerdosDAO().VotarAcuerdo(request);
         return(notificacion);
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message, new FaultCode("-1"), "VotarAcuerdo");
     }
 }
 public ActionResult _ObtenerAcuerdos(int idAsamblea, AccionAcuerdo accionAcuerdo)
 {
     try
     {
         List <Models.Acuerdo> LstAcuerdos = new AcuerdosDAO().ObtenerAcuerdos(idAsamblea);
         ViewBag.accion = accionAcuerdo;
         return(PartialView("_ObtenerAcuerdos", LstAcuerdos));
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message);
     }
 }
 public JsonResult ObtenerAcuerdos(int idAsamblea)
 {
     try
     {
         List <Models.Acuerdo> LstAcuerdos = new AcuerdosDAO().ObtenerAcuerdos(idAsamblea);
         return(new JsonResult()
         {
             Data = LstAcuerdos, JsonRequestBehavior = JsonRequestBehavior.AllowGet
         });
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message);
     }
 }
 public JsonResult EliminarAcuerdo(Acuerdo acuerdo)
 {
     try
     {
         Notificacion <Acuerdo> n = new AcuerdosDAO().EliminarAcuerdo(acuerdo);
         return(new JsonResult()
         {
             Data = n, JsonRequestBehavior = JsonRequestBehavior.AllowGet
         });
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message);
     }
 }