コード例 #1
0
        // GET: Admin/DepartmanYonetim
        public ActionResult DepartmanDuzenle(int?id)
        {
            DepartmanDuzenleViewModel model = new DepartmanDuzenleViewModel();

            if (id != null)
            {
                model.Departman = _departmanYonetimi.Get(d => d.ID == id);
            }

            return(View(model));
        }
コード例 #2
0
        public ActionResult CalisanGetir(int id)
        {
            ShowHomeViewModel model = new ShowHomeViewModel();

            model.Calisan   = _calisanYonetimi.Get(c => c.ID == id);
            model.Departman = _departmanYonetimi.Get(d => d.ID == model.Calisan.DepartmanID);
            return(PartialView(model));
        }