Esempio n. 1
0
        public static List <VMDepartment> Parse(List <Department> models)
        {
            List <VMDepartment> results = new List <VMDepartment>();

            foreach (var model in models)
            {
                results.Add(VMDepartment.Parse(model));
            }

            return(results);
        }
Esempio n. 2
0
        public static VMDepartment Parse(Department model)
        {
            VMDepartment result = new VMDepartment
            {
                DepartmentId       = model.DepartmentId,
                ParentDepartmentId = model.ParentDepartmentId,
                Name         = model.Name,
                CreateDate   = model.CreateDate,
                RootLevel    = model.RootLevel,
                IsActive     = model.IsActive,
                MaxEmployees = model.MaxEmployees,
                MinEmployees = model.MinEmployees,
                StoreId      = model.StoreId
            };

            return(result);
        }