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