Ejemplo n.º 1
0
        public IActionResult GetAll()
        {
            var customerGroups = _customerGroupRepository.GetAll();

            if (customerGroups.Count() > 0)
            {
                return(Ok(customerGroups));
            }
            else
            {
                return(NoContent());
            }
        }
Ejemplo n.º 2
0
 public IEnumerable <CustomerGroupDto> GetAll()
 {
     return(customerGroupRepository.GetAll().MappingDtos());
 }