コード例 #1
0
        public ActionResult Reschedule(System.Int32 AppointmentSheetId)
        {
            var appointmentReschedule = _AppointmentRepos.GetAppointmentByAppointmentId(AppointmentSheetId);

            appointmentReschedule.Reschedule = true;
            _AppointmentRepos.SaveAppointmentSheet(appointmentReschedule);
            return(Redirect("/AppointmentQueue/Index"));
        }
コード例 #2
0
        public ActionResult Appointment(string text, string id)
        {
            string[] ids   = id.Split(',');
            string[] names = text.Split(',');

            AppointmentSheet appointment;

            User user = _UsageRepos.GetUserIDByName(names[0], names[1]);

            foreach (string appointmentid in ids)
            {
                int aid = int.Parse(appointmentid);
                appointment = _AppointmentRepository.GetAppointmentByAppointmentId(aid);

                _UsageRepos.SaveAssignedAppointments(appointment, user.UserId);
            }


            //return RedirectToAction("Index", "ImportLead");
            return(Redirect("/AppointmentQueue/Index"));
        }
コード例 #3
0
        public ActionResult Index(string text, string id)
        {
            string[] ids = id.Split(',');
            // IList<Lead> leads;
            foreach (string appointmentid in ids)
            {
                int aid         = int.Parse(appointmentid);
                var appointment = _AppointmentRepos.GetAppointmentByAppointmentId(aid);
                appointment.Reschedule = true;
                _AppointmentRepos.SaveAppointmentSheet(appointment);
            }

            return(Redirect("/AppointmentQueue/Index"));
        }