示例#1
0
        public string Register(string username)
        {
            Customer c = new Customer(username);

            if (StoreLibraryService.Register(c))
            {
                return(c.Password);
            }
            return("Error");
        }
示例#2
0
 public double GetMoney(string username)
 {
     return(StoreLibraryService.GetCustomerMoney(username));
 }
示例#3
0
 public IEnumerable <Order> GetOrdersByUser(string username)
 {
     return(StoreLibraryService.GetOrdersByUsername(username));
 }
示例#4
0
 public bool Login(string username, string password)
 {
     return(StoreLibraryService.Login(username, password));
 }
示例#5
0
 public IEnumerable <Product> GetProducts()
 {
     return(StoreLibraryService.GetProducts());
 }
示例#6
0
 public Boolean Buy(string username, string productName, int quantity)
 {
     return(StoreLibraryService.Buy(username, productName, quantity));
 }