示例#1
0
        public ActionResult UserActivate(Guid id)
        {
            BusinessLayerManager <EvernoteUser> res = evernoteUserManager.Active(id);

            if (res.Errors.Count > 0)
            {
                ErrorViewModel errorNotify = new ErrorViewModel()
                {
                    Title = "Geçersiz İşlem",
                    Items = res.Errors
                };
                return(View("Error", errorNotify));
            }
            OkViewModel okNotify = new OkViewModel()
            {
                Title         = "Hesap Aktifleştirildi",
                RedicrtingUrl = "/Home/Login"
            };

            okNotify.Items.Add("Hesabınız Aktifleştirildi Artık Not Paylaşabilir Beğeni yapabilirsiniz.");

            return(View("Ok", okNotify));
        }