public ActionResult LogIn(LoginViewModel model, string returnUrl) { if (!ModelState.IsValid) { return(View(model)); } _userLogin.LogIn(model.Login, model.Password); return(RedirectToLocal(returnUrl)); }