public ActionResult LogIn(string Email, string Password , string ReturnUrl) { ViewData["Exception"] = null; acMng = new AccountManager<Account>(); if (!ModelState.IsValid) { return View(); } try { AuthManager(acMng.CreateIdentity(Email, Password)); return Redirect(Url.Action("Index", "WorkArea")); } catch (Exception ex) { ViewData["Exception"] = ex; return View(new Account()); } }