public IActionResult Get()
        {
            var query = new GetAllCustomizationsQuery();

            query.Validate();

            if (query.Invalid)
            {
                return(BadRequest(query.Notifications));
            }

            return(Ok(customizationQueryHandler.Handle(query)));
        }
示例#2
0
 public IEnumerable <Customization> Handle(GetAllCustomizationsQuery query)
 {
     return(customizationRepository.FindAll());
 }