Пример #1
0
 // 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());
     }
 }