public IActionResult Get() { var query = new GetAllCustomizationsQuery(); query.Validate(); if (query.Invalid) { return(BadRequest(query.Notifications)); } return(Ok(customizationQueryHandler.Handle(query))); }
public IEnumerable <Customization> Handle(GetAllCustomizationsQuery query) { return(customizationRepository.FindAll()); }