Пример #1
0
        public CustomerDTO AddCustomer(CustomerDTO customer)
        {
            customer = new CustomerDTO
            {
                EMail       = Console.ReadLine(),
                Addres      = Console.ReadLine(),
                Phone       = Console.ReadLine(),
                Description = Console.ReadLine()
            };



            return(_customerDAL.CreateCustomer(customer));
        }
Пример #2
0
        public CustomerDTO AddCustomer(CustomerDTO customer)
        {
            Console.WriteLine("Enter FullName, Mail, Login, Password");
            customer = new CustomerDTO
            {
                FullName = Console.ReadLine(),
                Mail     = Console.ReadLine(),
                Login    = Console.ReadLine(),
                Password = Convert.ToByte(Console.ReadLine())
            };



            return(_customerDAL.CreateCustomer(customer));
        }
Пример #3
0
 public CustomerDTO AddCustomer(CustomerDTO customer)
 {
     return(_customerDAL.CreateCustomer(customer));
 }