public ActionResult getEventById(int id) { ServicioLocalidad LocalidadServicio = new ServicioLocalidad(); var evento = new ServicioEvento().Read(id); evento.Venue = new ServicioVenue().Read(id); evento.Localidades = LocalidadServicio.ReadByVenue(evento.Venue_id, id).ToList(); evento.Etapas = new ServicioEtapas().Read(id); var Ticket = new ServicioTicketsEvento().ReadByEvent(id); string mapa = LocalidadServicio.getMapByevent(id); evento.TipoRegisro = Estado.Editando; evento.Estado = EstadoEvento.finalizado; return(Json(new { evento = evento, ticketData = Ticket.ContentSVG, Mapa = mapa }, JsonRequestBehavior.AllowGet)); }
public ActionResult getLocalidadesByVenue(int venueId) { ServicioLocalidad servicio = new ServicioLocalidad(); return(Json(new { Localidades = servicio.ReadByVenue(venueId), Mapa = "" }, JsonRequestBehavior.AllowGet)); }