Exemple #1
0
        Owner CreateNewOwner()
        {
            string fname   = QuestionInput("Firstname: ");
            string lname   = QuestionInput("Lastname: ");
            string address = QuestionInput("Address: ");
            string pnum    = QuestionInput("Phone number: ");

            Console.Write("Email: ");
            string email = Console.ReadLine();

            Owner newOwner = _petservice.CreateOwner(fname, lname, address, pnum, email);

            if (newOwner != null)
            {
                return(newOwner);
            }
            return(null);
        }