public void SignIn(string userName, HttpContextBase httpContextBase) { var user = _userRepository.AsNoTracking().First(x => x.UserName == userName); _cookieManager.AddAuthenticationCookie(user.Id, httpContextBase); }