public async Task<bool> NotExistsAsync(ClientInput input) { return await _clientRepository.FirstOrDefaultAsync( c => c.Name == input.Name && c.MobilePhoneNumber == input.MobilePhoneNumber) == null; }
public async Task CreateClientAsync(ClientInput input) { await _clientRepository.InsertAsync(input.MapTo<Client>()); }