public ActionResult DeleteProfileK() { Kullanicilar kk = Session["logink"] as Kullanicilar; BusinessLayerResult <Kullanicilar> res = k.RemoveUserByIdK(kk.Id); if (res.Errors.Count > 0) { ErrorViewModel errornotifyObj = new ErrorViewModel() { RedirectingUrl = "/Home/ShowProfileK", Title = "Profil Silinemedi.", Items = res.Errors }; return(View("Error", errornotifyObj)); } Session.Clear(); return(RedirectToAction("Index")); }