コード例 #1
0
        // GET: EczaneNobet/EczaneNobetIstek/Create
        public ActionResult Create()
        {
            //var user = _userService.GetByUserName(User.Identity.Name);

            //var eczaneler = _eczaneService.GetListByUser(user).Select(s => s.Id).ToList();

            //var user = _userService.GetByUserName(User.Identity.Name);
            var nobetUstGrup = _nobetUstGrupSessionService.GetSession("nobetUstGrup");

            //var eczaneler = _eczaneService.GetListByUser(user).Select(s => s.Id).ToList();
            var eczaneNobetGruplar = _eczaneNobetGrupService.GetDetaylar(nobetUstGrup.Id);

            ViewBag.EczaneNobetGrupId = new SelectList(_eczaneNobetGrupService.GetMyDrop(eczaneNobetGruplar),
                                                       //.Select(s => new MyDrop { Id = s.Id, Value = $"{s.EczaneAdi}, {s.NobetGrupGorevTipAdi}" })
                                                       //.OrderBy(s => s.Value),
                                                       "Id", "Value");

            ViewBag.IstekId      = new SelectList(_istekService.GetList(), "Id", "Adi");
            ViewBag.HaftaninGunu = new SelectList(_takvimService.GetHaftaninGunleri(), "Id", "Value");
            ViewBag.SecilenHaftaninGunuSayisi = 0;

            return(View());
        }
コード例 #2
0
        // GET: EczaneNobet/Istek
        public ActionResult Index()
        {
            var model = _istekService.GetList();

            return(View(model));
        }