Пример #1
0
        public static LinkedList <LinkedList <string> > DisplayCart(string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Guest.WatchAndEdit.Watch(userID));
        }
Пример #2
0
        public static bool SaveToCart(string SessionID, int productID, int amount)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Guest.SaveProductToCart.SaveProduct(productID, userID, amount));
        }
Пример #3
0
        public static bool RemoveDiscountPolicy(string store, int productId, string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Store_Owner_User.ManagePolicies.RemoveDiscountPolicy(store, productId, userID));
        }
Пример #4
0
        public static bool OpenStore(string storename, string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.RegisteredUser.OpenStore.openStore(storename, userID));
        }
Пример #5
0
        public static bool DeclineOwner(string store, string SessionID, string usernameToDecline)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Store_Owner_User.HandlerRequestAppointment.DeclineAppointment(store, userID, usernameToDecline));
        }
Пример #6
0
        public static bool AssignStoreManager(string SessionID, string store, string usernameToAppoint, bool[] privileges)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Store_Owner_User.AssignStoreManager.AsssignManager(userID, store, usernameToAppoint, privileges));
        }
Пример #7
0
        public static bool RemoveUserFromSystem(string SessionID, string usernameToDelete)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Admin.RemoveUserFromSystem.RemoveUser(userID, usernameToDelete));
        }
Пример #8
0
        public static LinkedList <LinkedList <string> > GetRoles(string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.RegisteredUser.GetRoles.getRoles(userID));
        }
Пример #9
0
        public static bool Login(string username, string password, string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Guest.LogIn.Login(username, password, userID));
        }
Пример #10
0
        public static bool Logout(string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.RegisteredUser.LogOut.Logout(userID));
        }
Пример #11
0
        public static LinkedList <string> GetPendingList(string SessionID, string storename)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Store_Owner_User.ShowWaitingList.ShowWaitingsList(userID, storename));
        }
Пример #12
0
        public static bool IsLoggedIn(string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Guest.IsLoggedIn.IsLogged(userID));
        }
Пример #13
0
        public static bool IsManager(string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Store_Owner_User.IsOwnerOrManage.IsManager2(userID));
        }
Пример #14
0
        public static bool ManageProducts(string SessionID, int productID, string name, string category, int price, int amount, string store, string option)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Store_Owner_User.ManageProducts.ManageProduct(userID, productID, name, category, price, amount, store, option));
        }
Пример #15
0
        public static bool IsAdmin(string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Admin.IsAdmin.isAdmin(userID));
        }
Пример #16
0
        public static bool AddBuyingPolicy(LinkedList <string> param, string store, string SessionID)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Store_Owner_User.ManagePolicies.AddBuyingPolicy(param, store, userID));
        }
Пример #17
0
        public static bool RemoveStoreManger(string SessionID, string store, string usernameToDelete)
        {
            int userID = Dictionary_SessionId_UserId.GetInstance().Get_UserId_From_Dictionary(SessionID);

            return(ServiceLayer.Store_Owner_User.RemoveStoreManager.removeStoreManager(userID, store, usernameToDelete));
        }