//---------------- public ActionResult UserActivate(Guid id) { k = new KullaniciManager(); BusinessLayerResult <Kullanicilar> res = k.ActivateUser(id); if (res.Errors.Count > 0) { ErrorViewModel notifyonj = new ErrorViewModel() { Title = "Geçersiz İşlem.", Items = res.Errors }; TempData["errors"] = res.Errors; return(View("Error", notifyonj)); } OkViewModel oknotifyObj = new OkViewModel() { Title = "Hesap Aktifleştirildi", RedirectingUrl = "/Home/LoginKullanici" }; oknotifyObj.Items.Add("Hesabınınz aktifleştirildi"); return(View("Ok", oknotifyObj)); }