public ActionResult UserActivate(Guid id) { BusinessResult <EvernoteUser> res = evernoteUserManager.ActivateUser(id); if (res.Errors.Count > 0) { ErrorViewModal ErrnotifyObj = new ErrorViewModal() { Title = "Geçersiz İşlem", Items = res.Errors }; return(View("Error", ErrnotifyObj)); } OKViewModal OknotifyObj = new OKViewModal() { Title = "Hesap Aktifleştirildi.", RedirectingUrl = "/Home/LogIn" }; OknotifyObj.Items.Add("Your Account activated. You can do shared and like."); return(View("Ok", OknotifyObj)); }
public ActionResult Register(RegisterViewModal modal) { if (ModelState.IsValid) { BusinessResult <EvernoteUser> res = evernoteUserManager.RegisterUser(modal); if (res.Errors.Count > 0) { res.Errors.ForEach(x => ModelState.AddModelError("", x.Message)); return(View(modal)); } OKViewModal notifyObj = new OKViewModal() { Title = "Kayıt Başarılı", RedirectingUrl = "/Home/Login" }; notifyObj.Items.Add("Please, Your Email sending Activation Mail must access."); return(View("Ok", notifyObj)); } return(View(modal)); }