Exemple #1
0
        /// <summary>
        /// Reset password
        /// </summary>
        /// <param name="param">Reset password Request Model</param>
        /// <remarks>Use access token of member model for request authorized API</remarks>
        public ResultModel ResetPassword(ResetPasswordRequestModel param)
        {
            ResultModel result = new ResultModel();

            try
            {
                MemberBL bl = new MemberBL();

                bl.ResetPassword(param);

                result.Status  = true;
                result.Message = "Your password has been changed";
            }
            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);
        }