Пример #1
0
        public static CreatedPackage GetById(int id)
        {
            var pack = new CreatedPackage();

            pack.Data = data.Package(id, IOHelper.MapPath(Settings.CreatedPackagesSettings));
            return(pack);
        }
Пример #2
0
        public static CreatedPackage MakeNew(string name)
        {
            var pack = new CreatedPackage
            {
                Data = data.MakeNew(name, IOHelper.MapPath(Settings.CreatedPackagesSettings))
            };


            return(pack);
        }
Пример #3
0
        public static List <CreatedPackage> GetAllCreatedPackages()
        {
            var val = new List <CreatedPackage>();

            foreach (var pack in data.GetAllPackages(IOHelper.MapPath(Settings.CreatedPackagesSettings)))
            {
                var crPack = new CreatedPackage();
                crPack.Data = pack;
                val.Add(crPack);
            }

            return(val);
        }