public async Task <int> FinishAsync(VipProcessDto dto, string userName) { dto.ProcessTime = DateTime.Now; dto.ProcessPerson = userName; if (string.IsNullOrEmpty(dto.ProcessInfo)) { dto.ProcessInfo = "已完成" + dto.VipStateDescription; } return(await _processRepository.UpdateOne <IVipProcessRepository, VipProcess, VipProcessDto>(dto)); }
public async Task<int> Post(VipProcessDto dto) { return await _service.FinishAsync(dto, User.Identity.Name); }
public async Task<int> Put(VipProcessDto dto) { return await _service.UpdateAsync(dto); }
public async Task <int> Put(VipProcessDto dto) { return(await _service.UpdateAsync(dto)); }
public async Task <int> UpdateAsync(VipProcessDto dto) { return(await _processRepository.UpdateOne <IVipProcessRepository, VipProcess, VipProcessDto>(dto)); }
public VipProcess Match(VipProcessDto stat) { return(FirstOrDefault(x => x.SerialNumber == stat.SerialNumber)); }
public VipProcess Match(VipProcessDto stat) { var state = stat.VipStateDescription.GetEnumType <VipState>(); return(FirstOrDefault(x => x.SerialNumber == stat.SerialNumber && x.VipState == state)); }
public async Task <int> Post(VipProcessDto dto) { return(await _service.FinishAsync(dto, User.Identity.Name)); }