private Store OptionSelect(User potentialUser) { PrintColoredText($"\n||| HOME |||\nWelcome {potentialUser.Name.First} {potentialUser.Name.Last}"); Console.WriteLine(_viewOrderHistory); Console.WriteLine(_viewLocations); Console.WriteLine(_selectALocation); Console.WriteLine(_logoutOption); string option = CleanString(Console.ReadLine()); Store store = null; if (option == _signOut) { Console.WriteLine(_loggingOut); IntroScreen intro = new IntroScreen(); intro.Begin(); } else if (option == $"{_view} {_locations}") { StoreLocations.PrintStores(); } else if (option == $"{_view} {_history}") { potentialUser.PrintOrderHistory(); } else if (option.Contains(_select)) { store = StoreLocations.GetStoreByAddress(option.Replace(_select, "").Trim()); } else { Console.WriteLine(_invalidArgument); } return(store); }
public StoreLocation DbModelToBusinessModel(StoreLocations Store) { return(new StoreLocation { Name = Store.Name, StoreLocationId = Store.StoreLocationId, Address1 = Store.Address1, Address2 = Store.Address2, City = Store.City, State = Store.State, Zip = Store.Zip }); }