Esempio n. 1
0
        public ProfileResultModel Register(RegisterRequestModel param)
        {
            ProfileResultModel result = new ProfileResultModel();

            try
            {
                MemberBL bl = new MemberBL();

                string activationKey = null;
                var    member        = bl.Register(param, out activationKey);

                result.Status = true;
                //result.Message = "Registered";
                /*** TEMPORARY ***/
                result.Message = activationKey;

                result.Member = member;
            }
            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);
        }