public bool ScheduleTax(string municipalityName, Tax tax) { var municipality = _municipalityRepo.Get(municipalityName); if (municipality == null || municipality.IsTaxOverlapping(tax)) { return(false); } tax.MunicipalityId = municipality.Id; _taxRepository.Add(tax); _taxRepository.Save(); return(true); }
public bool Save(lmsTaxMaster entity) { try { if (entity.TAXID > 0) { taxRepository.Edit(entity); } else { taxRepository.Add(entity); } taxRepository.Save(); return(true); } catch (Exception) { throw; } }
private void SaveChanges() { _municipalityRepo.Save(); _taxRepository.Save(); }