Beispiel #1
0
        public ActionResult CheckBoxListPartial()
        {
            List <string> Actors = new List <string>();
            var           wid    = scheduleRepo.GetAllSchedules().Where(x => x.PublicKey == PUBLICKEY).FirstOrDefault().WID;
            var           actors = scheduleRepo.GetAllActors().Where(x => x.WID == wid);

            foreach (var actor in actors)
            {
                Actors.Add(actor.Username);
            }
            Session["actors"] = Actors;
            return(PartialView("_CheckBoxListPartial"));
        }
Beispiel #2
0
        private EntityServerModeSource GetEtntityDataSource(string key)
        {
            EntityServerModeSource esms = new EntityServerModeSource();

            esms.KeyExpression = "WID";
            if (key != null)
            {
                PUBLICKEY = key;
                var model = scheduleRepo.GetAllSchedules().Where(x => x.PublicKey == key);
                esms.QueryableSource = model;
                return(esms);
            }
            esms.QueryableSource = null;
            return(esms);
        }