public CustomerDTO AddCustomer(CustomerDTO customer) { customer = new CustomerDTO { EMail = Console.ReadLine(), Addres = Console.ReadLine(), Phone = Console.ReadLine(), Description = Console.ReadLine() }; return(_customerDAL.CreateCustomer(customer)); }
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)); }
public CustomerDTO AddCustomer(CustomerDTO customer) { return(_customerDAL.CreateCustomer(customer)); }