示例#1
0
        public List <Models.PartialPageModel> GetAllPartialPage()
        {
            List <PartialPageModel> lstPartialPageModel = new List <PartialPageModel>();

            using (PhysioDevEntities db = new PhysioDevEntities())
            {
                var lstPartials = db.PartialPages.Where(m => m.IsActive == true).ToList();
                foreach (var Partial in lstPartials)
                {
                    PartialPageModel obj = new PartialPageModel();
                    Partial.CopyProperties(obj);
                    lstPartialPageModel.Add(obj);
                }
            }
            return(lstPartialPageModel);
        }