public Response <Evento> ListarEvento([FromBody] Evento ev) { Response <Evento> obj = new Response <Evento>(); GestionEvento list = new GestionEvento(); return(obj = list.ListEvento(ev)); }
public Response <List <Evento> > ListarEventos() { Response <List <Evento> > obj = new Response <List <Evento> >(); GestionEvento list = new GestionEvento(); return(obj = list.ListEventos()); }
public Response <Evento> GuardarEvento([FromBody] Evento ev) { Response <Evento> obj = new Response <Evento>(); GestionEvento transaccion = new GestionEvento(); if (ev.operacion == "Nuevo") { return(obj = transaccion.InsertEvento(ev)); } else { return(obj = transaccion.UpdateEvento(ev)); } }