Example #1
0
        public static bool AddUser(IUsersManagerBll umb)
        {
            Console.WriteLine("Adding new User." + Environment.NewLine);
            Console.WriteLine("Input the Name:");
            var name = Console.ReadLine();

            Console.WriteLine("Input the Year of Birth:");
            var year = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Input the Month of Birth:");
            var month = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Input the Day of Birth:");
            var day  = Int32.Parse(Console.ReadLine());
            var user = new User(name, new DateTime(year, month, day));

            umb.AddUser(user);
            return(true);
        }
Example #2
0
 public static void DeleteUserById(IUsersManagerBll umb, Guid id)
 {
     umb.DeleteUserById(id);
 }