コード例 #1
0
 /// <summary>
 /// 创建
 /// </summary>
 /// <param name="KeyHolding"></param>
 /// <returns></returns>
 public virtual async Task CreateAsync(KeyHolding entity)
 {
     await KeyHoldingRepository.InsertAsync(entity);
 }
コード例 #2
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="KeyHolding"></param>
 /// <returns></returns>
 public virtual async Task UpdateAsync(KeyHolding entity)
 {
     await KeyHoldingRepository.UpdateAsync(entity);
 }
コード例 #3
0
 public async Task CreateKeyHolding(CreateKeyHoldingInput input)
 {
     var entity = new KeyHolding(CurrentUnitOfWork.GetTenantId(), input.VisitorName, input.VisiteStartTime, input.VisiteEndTime, input.Password, input.KeyType, input.HomeOwerId, input.CommunityId);
     await _manager.CreateAsync(entity);
 }