DocSas/PropertyService.Domain/ModelView/Users/UserProvider.cs
/// <summary>
/// verify change password as an asynchronous operation.
/// </summary>
/// <param name="userVM">The user vm.</param>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
verify change password as an asynchronous operation.
verify change password as an asynchronous operation .
public async Task<DSCResponse> VerifyChangePasswordAsync(UserVM userVM)
        {
            var msg = new Dictionary<string, string>();
            var response = new DSCResponse();
            var verResponse = await _appCommon.IsVeriyCodeAsync(userVM.VericationCodeId, DSCVerifyType.ForgotPassword);
            if (verResponse.IsSuccess)
            {
                var verCode = verResponse.ResponseData as VerificationCode;
                userVM.Id = verCode.UserId;
                response.ResponseData = userVM;
            }
            else
            {
                msg = verResponse.ErrorMessage;
            }         
            response.ErrorMessage = msg;
            return response;
        }
public async Task < DSCResponse > VerifyChangePasswordAsync ( UserVM userVM ) { var msg = new Dictionary < string , string > ( ) ; var response = new DSCResponse ( ) ; var verResponse = await _appCommon . IsVeriyCodeAsync ( userVM . VericationCodeId , DSCVerifyType . ForgotPassword ) ; if ( verResponse . IsSuccess ) { var verCode = verResponse . ResponseData as VerificationCode ; userVM . Id = verCode . UserId ; response . ResponseData = userVM ; } else { msg = verResponse . ErrorMessage ; } response . ErrorMessage = msg ; return response ; }
verify change password as an asynchronous operation.
verify change password as an asynchronous operation .
None
userVM
UserVM
The user vm.
The user vm .