Beispiel #1
0
        public ActionResult ProfesorProfile()
        {
            var userId    = User.Identity.GetUserId();
            var viewModel = new ProfesorDetailViewModel
            {
                Profesor     = _unitOfWork.Profesors.GetProfile(userId),
                Appointments = _unitOfWork.Appointments.GetUpcommingAppointments(userId),
            };

            return(View(viewModel));
        }
Beispiel #2
0
        //Details for admin
        public ActionResult Details(int id)
        {
            var viewModel = new ProfesorDetailViewModel
            {
                Profesor             = _unitOfWork.Profesors.GetProfesor(id),
                UpcomingAppointments = _unitOfWork.Appointments.GetTodaysAppointments(id),
                Appointments         = _unitOfWork.Appointments.GetAppointmentByProfesor(id),
            };

            return(View(viewModel));
        }