Пример #1
0
        public Contract_JMMUser AuthenticateUser(string username, string password)
        {
            JMMUserRepository repUsers = new JMMUserRepository();

            try
            {
                JMMUser user = repUsers.AuthenticateUser(username, password);
                if (user == null) return null;

                return user.ToContract();

            }
            catch (Exception ex)
            {
                logger.ErrorException(ex.ToString(), ex);
                return null;
            }
        }