예제 #1
0
        public async Task Remover(Guid id)
        {
            await _despesaRepository.Remover(id);

            await _despesaParcelaRepository.RemoverPelaDespesa(id);

            await _despesaRepository.SaveChanges();
        }
예제 #2
0
        public int Remover(VisitaViewModel visitaViewModel)
        {
            var visita  = Mapper.Map <Visita>(visitaViewModel);
            var despesa = Mapper.Map <IEnumerable <Despesa.Lite.Mvc.Models.Despesa> >(visitaViewModel.Despesas);

            foreach (var item in despesa)
            {
                _despesarepository.Remover(item);
            }

            return(_visitarepository.Remover(visita));
        }
 public void Remover(Guid id)
 {
     _despesaRepository.Remover(id);
 }
예제 #4
0
 public int Remover(DespesaViewModel despesaViewModel)
 {
     return(_despesarepository.Remover(Mapper.Map <Despesa.Lite.Mvc.Models.Despesa>(despesaViewModel)));
 }
 public async Task Remover(int id)
 {
     await _despesaRepository.Remover(id);
 }