public IActionResult ItemTaxGroups() { var itemTaxGroupsDto = new List <ItemTaxGroup>(); var itemTaxGroups = _taxService.GetItemTaxGroups(); foreach (var group in itemTaxGroups) { var groupDto = new ItemTaxGroup() { Id = group.Id, Name = group.Name, IsFullyExempt = group.IsFullyExempt }; itemTaxGroupsDto.Add(groupDto); } return(new ObjectResult(itemTaxGroupsDto)); }