Exemplo n.º 1
0
        public ActionResult UpdateCategory(CategoryDTO model)
        {
            if (ModelState.IsValid)
            {
                CategoryDTO CategoryDTO = CategoryUIService.IdIleGetir(model.CategoryDtoId);

                model.CreatedUserNameDto  = CategoryDTO.CreatedUserNameDto;
                model.CreatedDateDto      = CategoryDTO.CreatedDateDto;
                model.ModifiedUserNameDto = ((UserDTO)Session["User"]).UserNameDTO;
                model.ModifiedDateDto     = DateTime.Now;

                bool UpdateisOk = CategoryUIService.Guncelle(model);

                ViewBag.islemDurum = "7";
            }

            else
            {
                ViewBag.islemDurum = "8";
            }

            return(View());
        }