//todo authenticate user public async Task <ActionResult> Autenticate(string userName) { var user = await _userIdentity.GetUserByName(userName); UserAutenticate(user); return(Json(true, JsonRequestBehavior.AllowGet)); }