/// <summary>
        /// Gets a list of published services for defined service class.
        /// </summary>
        /// <param name="uri"></param>
        /// <param name="date"></param>
        /// <param name="page"></param>
        /// <returns></returns>
        protected IActionResult GetByServiceClassBase(string uri, DateTime?date, int page = 1)
        {
            string decodedUri   = System.Net.WebUtility.UrlDecode(uri);
            var    serviceClass = fintoService.GetServiceClassByUri(decodedUri);

            if (serviceClass == null || !serviceClass.Id.IsAssigned())
            {
                return(NotFound(new VmError()
                {
                    ErrorMessage = $"Service class with uri '{uri}' not found."
                }));
            }
            return(Ok(serviceService.GetServicesByServiceClass(serviceClass.Id, date, page, pageSize)));
        }
        /// <summary>
        /// Checks if service class list is valid or not.
        /// </summary>
        /// <returns></returns>
        public override void Validate(ModelStateDictionary modelState)
        {
            if (Model == null)
            {
                return;
            }

            var i = 0;

            Model.ForEach(uri =>
            {
                var item = fintoService.GetServiceClassByUri(uri);
                if (item == null || !item.Id.IsAssigned())
                {
                    modelState.AddModelError($"{PropertyName}[{ i++ }]", string.Format(CoreMessages.OpenApi.CodeNotFound, uri));
                }
            });
        }