public ActionResult AdminActivate(Guid id) { AdminManager adm = new AdminManager(); BusinessLayerResult <Admin> res = adm.ActivateAdmin(id); if (res.Errors.Count > 0) { ErrorViewModel ErrnotifyObj = new ErrorViewModel() { Title = "Geçersiz İşlem", Items = res.Errors }; return(View("Error", ErrnotifyObj)); } OkViewModel OkntfyObj = new OkViewModel() { Title = "Hesap Aktifleştiridi.", RedirectingUrl = "/Home/AdminLogin" }; OkntfyObj.Items.Add("Hesabınız Aktifleştiridi.. Aramıza Hoşgeldin !"); return(View("Ok", OkntfyObj)); }