public string Register(string username) { Customer c = new Customer(username); if (StoreLibraryService.Register(c)) { return(c.Password); } return("Error"); }
public double GetMoney(string username) { return(StoreLibraryService.GetCustomerMoney(username)); }
public IEnumerable <Order> GetOrdersByUser(string username) { return(StoreLibraryService.GetOrdersByUsername(username)); }
public bool Login(string username, string password) { return(StoreLibraryService.Login(username, password)); }
public IEnumerable <Product> GetProducts() { return(StoreLibraryService.GetProducts()); }
public Boolean Buy(string username, string productName, int quantity) { return(StoreLibraryService.Buy(username, productName, quantity)); }