Exemple #1
0
        public ResultModel IsEmailAlreadyExists(string email)
        {
            ResultModel result = new ResultModel();

            try
            {
                MemberBL bl = new MemberBL();

                if (bl.IsEmailAlreadyExists(email))
                {
                    result.Status  = true;
                    result.Message = "email '" + email + "' already exists";
                }
                else
                {
                    result.Status  = false;
                    result.Message = "email '" + email + "' not exists";
                }
            }
            catch (OrgException oex)
            {
                result.Status  = false;
                result.Message = oex.Message;
            }
            catch (Exception ex)
            {
                result.Status  = false;
                result.Message = AppConfigs.InternalErrorMessage;

                if (AppConfigs.DebugInternalMessage)
                {
                    result.InternalMessage = ex.Message;
                }
            }

            return(result);
        }