コード例 #1
0
        public IActionResult GuncelleAciliyet(int id)
        {
            TempData["active"] = "aciliyet";

            var aciliyet = _aciliyetService.GetirIdile(id);

            AciliyetUpdateViewModel model = new AciliyetUpdateViewModel
            {
                Id    = aciliyet.Id,
                Tanim = aciliyet.Tanim
            };

            return(View(model));
        }
コード例 #2
0
        public IActionResult GuncelleAciliyet(int id)
        {
            TempData["Active"] = TempdataInfo.Aciliyet;


            return(View(_mapper.Map <AciliyetUpdateDto>(_aciliyetService.GetirIdile(id))));
        }
コード例 #3
0
        public IActionResult GuncelleAciliyet(int id)
        {
            TempData["Active"] = "aciliyet";
            var guncellemesiGerekenDatabaseAciliyeti = _aciliyetService.GetirIdile(id);
            AciliyetUpdateViewModel model            = new AciliyetUpdateViewModel();

            model.Id    = guncellemesiGerekenDatabaseAciliyeti.Id;
            model.Tanim = guncellemesiGerekenDatabaseAciliyeti.Tanim;

            return(View(model));
        }
コード例 #4
0
        public IActionResult GuncelleAciliyet(int id)
        {
            TempData["Active"] = TempDataInfo.Aciliyet;
            //var aciliyet = _aciliyetService.GetirIdile(id);
            //AciliyetUpdateViewModel model = new AciliyetUpdateViewModel
            //{
            //    Id = aciliyet.Id,
            //    Tanim = aciliyet.Tanim
            //};

            return(View(_mapper.Map <AciliyetUpdateDto>(_aciliyetService.GetirIdile(id))));
        }