public ActionResult BilgilerimiGuncelle(KullaniciModel model) { if (model.KullaniciSifre == null) { model.KullaniciSifre = "123456"; model.KullaniciSifreTekrar = "123456"; } if (ModelState.IsValid) { var sonuc = kullaniciBusinessLayer.BilgilerimiGuncelle(model); if (sonuc == true) { TempData["uyari"] = "İşlem başarı ile tamamlandı."; return(View(model)); } else { TempData["hata"] = "Düzenleme işlemi sırasında hata oluştu."; return(View(model)); } } else { return(View(model)); } }