Пример #1
0
        public ActionResult ManageAppointment(string ID, string DBOperation)
        {
            SharedViewModel vm = new SharedViewModel();

            //vm.Appointments = _appoDal.GetAllAppointments().TranslateAppointmentDEList();
            vm.LookUp = _appoDal.GetAllPropertyTypes().TranslateLookUpModel().ToList();
            if (DBOperation == "EDIT")
            {
                int id = Convert.ToInt32(ID);
                vm.Appointment = _appoDal.GetAppointmentById(id).TranslateAppointmentDE();
                vm.Appointment.ConfirmEmail = vm.Appointment.Email;
            }
            return(View(vm));
        }