public Order(List <Product> products, RegistredGuest receiver) { ID = OrderLocalDB.GetOrders.Count + 1; order = products; FullCost = CountFullPrice(); Receiver = receiver; Status = OrderStatus.New; }
public void Registration() { RegistredGuest registredGuest = new RegistredGuest( checker.CheckIsNotEmpty(register.InputName()), checker.CheckIsNotEmpty(register.InputSurname()), checker.CheckIsNotEmpty(register.InputEmail()), checker.CheckIsNotEmpty(register.InputLogin()), checker.CheckIsNotEmpty(register.InputPassword())); UsersLocalDB.Add(registredGuest); }
public bool Enter(ref User user) { Console.WriteLine("Enter login:"******"Enter password:"******"You were entered as {login}"); user = new RegistredGuest(Rights.RegistredUser); (user as RegistredGuest).Login = UsersLocalDB.GetUserlogin(login); return(true); } MenuBacker.FailBackMessage(); return(false); }
static public void Add(RegistredGuest guest) { registredGuests.Add(guest); }
public Order(RegistredGuest receiver) { Receiver = receiver; }