Ejemplo n.º 1
0
        static void DeleteUser()
        {
            Console.WriteLine("Please enter the user's information...");
            Console.Write("First Name: ");
            var firstName = Console.ReadLine();
            Console.Write("Last Name: ");
            var lastName = Console.ReadLine();

            var user = new User {FirstName = firstName, LastName = lastName};
            _unitOfWork.Users.Remove(user);
        }
Ejemplo n.º 2
0
 public AddUserSource(IAdoUnitOfWork unitOfWork, User user)
     : base(unitOfWork)
 {
     _user = user;
 }