public async Task Remover(Guid id) { await _despesaRepository.Remover(id); await _despesaParcelaRepository.RemoverPelaDespesa(id); await _despesaRepository.SaveChanges(); }
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); }
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); }