Exemple #1
0
 /// <summary>
 /// 添加或者修改CarPort的公共方法
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task CreateOrUpdateCarPort(CreateOrUpdateCarPortInput input)
 {
     if (input.CarPort.Id > 0)
     {
         await UpdateCarPortAsync(input.CarPort);
     }
     else
     {
         await CreateCarPortAsync(input.CarPort);
     }
 }
Exemple #2
0
 public async Task RemoveCarUserId(CreateOrUpdateCarPortInput input)
 {
     input.CarPort.CarUserId = null;
     input.CarPort.CarUser   = null;
     await UpdateCarPortAsync(input.CarPort);
 }