Exemplo n.º 1
0
        public static List <StoreOwnershipAppoint> ConvertStoresUserOwnes(User user)
        {
            List <StoreOwnershipAppoint> StoresUserIsOwner = new List <StoreOwnershipAppoint>();

            if (user.IsListNotEmpty(CommonStr.UserListsOptions.OwnStores))
            {
                Dictionary <int, string> AllOwnerStores = user.Store_Ownership;
                //Dictionary<int, User> AllOwnerAppointers = user.AppointedByOwner;
                foreach (int storeNum in AllOwnerStores.Keys)
                {
                    StoreOwnershipAppoint Ownersdata = new StoreOwnershipAppoint(AllOwnerStores[storeNum], user.getUserName(), storeNum);
                    StoresUserIsOwner.Add(Ownersdata);
                }
            }
            return(StoresUserIsOwner);
        }
Exemplo n.º 2
0
        public static StoreOwnershipAppoint GetOwnerNote(string appointer, string appointed, int storeID)
        {
            StoreOwnershipAppoint s = new StoreOwnershipAppoint(appointer, appointed, storeID);

            return(DbManager.Instance.GetOwnerAppoint(s));
        }