public ActionResult ProfilSil() { BusinessLayerResult <KanBanKullanici> res = km.RemoveUserById(CurrentSession.kullanici.Id); if (res.Hata.Count > 0) { ErrorViewModel mesaj = new ErrorViewModel() { Items = res.Hata, Title = "Profil Silinemedi", RedirectingUrl = "/Profile/ProfizDuzenle" }; return(View("Error", mesaj)); } Session.Clear(); return(RedirectToAction("Login", "Home")); }