Example #1
0
        public int RetrieveMemberByEmail(string email)
        {
            int id = 0;

            try
            {
                id = _memberAccessor.SelectMemberByEmail(email);
                if (id == 0)
                {
                    throw new NullReferenceException("Member not found");
                }
            }
            catch (Exception ex)
            {
                ExceptionLogManager.getInstance().LogException(ex);
                throw ex;
            }
            return(id);
        }