Пример #1
0
        public ActionResult Preferences(string id)
        {
            StudentPrefViewModel spv = new StudentPrefViewModel();

            spv.Student             = studentDAL.GetStudentById(id);
            spv.AllCompanies        = companyDAL.GetAllCompanies();
            spv.Student.Preferences = preferencesDAL.GetPreferredCompaniesByStudentId(id);

            return(View("Preferences", spv));
        }