public static Sector CreateSector(string name, Wilaya wilaya, Commune commune)
        {
            var sector = new Sector {
                Name = name, id = Guid.NewGuid(), Wilaya = wilaya, Commune = commune, newObject = true
            };

            return(sector);
        }
Exemple #2
0
        public static Stock CreateStock(string name, Wilaya wilaya, Commune commune, string adress)
        {
            var stock = new Stock(name)
            {
                id = Guid.NewGuid(), newObject = true, Wilaya = wilaya, Commune = commune, Adress = adress
            };

            return(stock);
        }