Browse Source

婚姻状况修改,去掉为空判断

bjmzak
DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
638afa2ad5
  1. 9
      src/Shentun.Peis.Application/MaritalStatuses/MaritalStatusesAppService.cs

9
src/Shentun.Peis.Application/MaritalStatuses/MaritalStatusesAppService.cs

@ -57,19 +57,14 @@ namespace Shentun.Peis.MaritalStatuses
public async Task<MaritalStatusDto> UpdateAsync(char Id, UpdateMaritalStatusDto input)
{
var ent = await _repository.GetAsync(m => m.Id == Id);
if (ent != null)
{
ent.SimpleCode = input.SimpleCode;
ent.DisplayName = input.DisplayName;
var newent = await _repository.UpdateAsync(ent);
return ObjectMapper.Map<MaritalStatus, MaritalStatusDto>(newent);
}
else
{
return ObjectMapper.Map<MaritalStatus, MaritalStatusDto>(ent);
}
}

Loading…
Cancel
Save