Example #1
0
        public void AddAdopter(Adopter adopter)
        {
            Adopters_Log Adopter = adopter.AdopterForm();

            Database.Adopters_Log.Add(Adopter);
            Database.SaveChanges();
        }
Example #2
0
        public Adopters_Log AdopterForm()
        {
            Adopters_Log AdopterToAdd = new Adopters_Log();

            UI.DisplayMesage("What is adopters first name?");
            AdopterToAdd.First_Name = UI.getUserInput();
            UI.DisplayMesage("What is adopters last name?");
            AdopterToAdd.Last_Name = UI.getUserInput();

            return(AdopterToAdd);
        }