/// <summary> /// 创建 /// </summary> /// <param name="KeyHolding"></param> /// <returns></returns> public virtual async Task CreateAsync(KeyHolding entity) { await KeyHoldingRepository.InsertAsync(entity); }
/// <summary> /// 修改 /// </summary> /// <param name="KeyHolding"></param> /// <returns></returns> public virtual async Task UpdateAsync(KeyHolding entity) { await KeyHoldingRepository.UpdateAsync(entity); }
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); }