public ActionResult Login(LoginViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return View(model);
            }

            ApplicationSignInManager signInManager = Request.GetOwinContext().Get<ApplicationSignInManager>();
            SignInStatus signInStatus = signInManager.PasswordSignIn(model.Email, model.Password, false, false);
            switch (signInStatus)
            {
                case SignInStatus.Success:
                    return Redirect("/");
                default:
                    ModelState.AddModelError("", "Invalid login attempt");
                    return View(model);
            }
        }
 public ActionResult Login()
 {
     LoginViewModel model = new LoginViewModel();
     return View(model);
 }