Ejemplo n.º 1
0
        private IList<Models.SubArea> GetSubAreaList(int primaryAreaID)
        {
            IntegrationWebSiteMvc.Models.AreaContext context = new Models.AreaContext();
            List<Models.SubArea> subAreas = new List<Models.SubArea>();

            subAreas = context.SubAreas.ToList().FindAll(p => p.PrimaryAreaID == primaryAreaID);

            return subAreas;
        }
Ejemplo n.º 2
0
        public ActionResult EditOrCreateArea(int id, string adLoginID)
        {
            IntegrationWebSiteMvc.Models.AreaData model = null;
            IntegrationWebSiteMvc.Models.AreaContext context = new Models.AreaContext();

            model = new Models.AreaData();
            model.PrimaryAreas = context.PrimaryAreas.ToList();
            model.SubAreas = new List<Models.SubArea>();

            ViewBag.PrimaryAreas = model.PrimaryAreas;
            model.ADLoginID = adLoginID;

            return View(model);
        }