示例#1
0
        public async Task <AccountDto> CreateAsync(AccountDto accountDto)
        {
            try
            {
                accountDto.Password = Extensions.MD5Encrypt(accountDto.Password);
                accountDto.Status   = true;
                var result = await _iaccountdata.CreateAsync(accountDto);

                return(result);
            }
            catch (Exception ex)
            {
                return(null);
            }
        }