public async Task Save(IEnumerable <Neighborhood> neighborhoods) { foreach (var neighborhood in neighborhoods) { await NeighborhoodRepository.Add(neighborhood, false); } await NeighborhoodRepository.SaveChanges(); }
public void Save(Neighborhood neighborhood) { _neighborhoodRepository.Add(neighborhood); _unitOfWork.Complete(); }