internal static User CheckCachedUser(User userCandidate) { var userInStorage = CountServiceWrapper.GetUserByGuid(userCandidate.Guid); if (userInStorage != null && userInStorage.CheckPassword(userCandidate)) { return(userInStorage); } return(null); }
public static bool UserExists(string login) { return(CountServiceWrapper.UserExists(login)); }
public static void AddRequest(Request request) { CountServiceWrapper.AddRequest(request); }
public static void AddUser(User user) { CountServiceWrapper.AddUser(user); }
public static User GetUserByLogin(string login) { return(CountServiceWrapper.GetUserByLogin(login)); }
public static bool UserEmailExists(string email) { return(CountServiceWrapper.UserEmailExists(email)); }