public IHttpActionResult Get() { try { List <Evento> todos = EventoBLL.List(); return(Content(HttpStatusCode.OK, todos)); //return Json(todos); } catch (Exception ex) { return(Content(HttpStatusCode.BadRequest, ex)); } }
//private Entities db = new Entities(); // GET: Eventos public ActionResult Index() { return(View(EventoBLL.List())); }
// GET: Eventos public ActionResult Index() { ViewBag.Title = "Listado de Eventos"; return(View(EventoBLL.List())); }