// GET: Appointment public ActionResult Index() { try { var appointments = appointmentBusiness.List(); return(View(AppointmentModel.ToModelList(appointments))); } catch (Exception ex) { Log.Error(ex.Message, ex); ModelState.AddModelError("Model", "Ha ocurrido un error. Por favor, contacte al administrador"); return(View()); } }
public JsonResult GetEvents() { var appointments = appBLL.List(); return(new JsonResult { Data = appointments, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }