public IActionResult GetAll() { var customerGroups = _customerGroupRepository.GetAll(); if (customerGroups.Count() > 0) { return(Ok(customerGroups)); } else { return(NoContent()); } }
public IEnumerable <CustomerGroupDto> GetAll() { return(customerGroupRepository.GetAll().MappingDtos()); }