public ActionResult Login(LoginVM model) { if (!ModelState.IsValid) { return(View("Login")); } var dto = LoginVM.Converter(model); _usuarioServico.Autenticar(dto); var returnUrl = _tempDataServico.Buscar <string>(ReturnUrl); return(Redirect(string.IsNullOrEmpty(returnUrl) ? _configurationReader.GetAppSetting(ReturnUrl) : returnUrl)); }