示例#1
0
 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));
 }
示例#2
0
 public async Task<int> Post(VipProcessDto dto)
 {
     return await _service.FinishAsync(dto, User.Identity.Name);
 } 
示例#3
0
 public async Task<int> Put(VipProcessDto dto)
 {
     return await _service.UpdateAsync(dto);
 }
示例#4
0
 public async Task <int> Put(VipProcessDto dto)
 {
     return(await _service.UpdateAsync(dto));
 }
示例#5
0
 public async Task <int> UpdateAsync(VipProcessDto dto)
 {
     return(await _processRepository.UpdateOne <IVipProcessRepository, VipProcess, VipProcessDto>(dto));
 }
示例#6
0
 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));
 }