public async Task UpdateAsync(PlaceModel model) { if (model.Id == 0 || !(await placeRepository.AnyAsync(model.Id))) { throw new ArgumentException(nameof(model.Id)); } await placeRepository.AddOrUpdateAsync(model); }
public async Task UpdateAsync(PlaceModel model) { if (model.Id == 0 || !(await placeRepository.AnyAsync(model.Id))) { throw new ArgumentException(nameof(model.Id)); } await placeRepository.AddOrUpdateAsync(model); }