public ActionResult Login(Login login)
        {
            if (login.Name == "Admin" && login.Password == "Admin")
            {
                var account = new Account()
                {
                    Email = "*****@*****.**",
                    Login = "******",
                    Password = "******",
                    Role = Role.Admin
                };
                var authorize = new ExampleAuthorizeService();
                authorize.SignIn(account, false);
            }
            else if (login.Name == "User" && login.Password == "User")
            {
                var account = new Account()
                {
                    Email = "*****@*****.**",
                    Login = "******",
                    Password = "******",
                    Role = Role.User
                };
                var authorize = new ExampleAuthorizeService();
                authorize.SignIn(account, false);
            }
            else
            {
                return View();
            }

            return RedirectToAction("AllIndex");
        }
        public Client(Account account)
            : this()
        {
            if (account == null)
                throw new ArgumentNullException("account");

            Account = account;
            Account.AddRole(Role.Client);
        }
 public void Save(Account account)
 {
 }