Пример #1
0
 public PeopleSystem(string name, string personid, string phonenumber, string ipaddress, string maritalstatus, string personalstatus, int iq, Texture2D photo, DOBSystem dob, CollageSystem collage, UniversitySystem university, BankSystem bankdetails, GatewaySystem gateway)
 {
     Name           = name;
     PersonID       = personid;
     PhoneNumber    = phonenumber;
     IPAddress      = ipaddress;
     MaritalStatus  = maritalstatus;
     PersonalStatus = personalstatus;
     IQ             = iq;
     Photo          = photo;
     DOB            = dob;
     Collage        = collage;
     University     = university;
     BankDetails    = bankdetails;
     Gateway        = gateway;
 }
        public ActionResult AddTitle(UniversitySystem.ViewModel.Titles.AddTitle model)
        {
            if (!ModelState.IsValid)
            {
                return View();
            }

            TitleRepository titleRepo = new TitleRepository();
            Title title = new Title();

            title.Name = model.TitlteName;

            titleRepo.Save(title);

            return RedirectToAction("ListTeachers", "Teacher");
        }
Пример #3
0
    void PopulateUniInfo()
    {
        SelectedClass           = PersonController.control.UniClasses[Random.Range(0, PersonController.control.UniClasses.Count)];
        TempUni1.Qualifications = SelectedClass;

        SelectedGrade = PersonController.control.UniGrades[Random.Range(0, PersonController.control.UniGrades.Count)];
        if (SelectedClass == "")
        {
            SelectedGrade = "";
        }
        if (SelectedClass != "" && SelectedGrade == "")
        {
            SelectedGrade = PersonController.control.UniGrades[Random.Range(0, PersonController.control.UniGrades.Count)];
        }
        if (SelectedClass != "" && SelectedGrade != "" || SelectedClass == "" && SelectedGrade == "")
        {
            TempUni1.Grade = SelectedGrade;
            TempUni1       = new UniversitySystem("", SelectedClass, SelectedGrade);

            SelectedClass = "";
            SelectedGrade = "";
        }
    }