GetCatalogItemToReestrMSP([FromBody] CatalogItem received)     //, List<SortingDefinition> sorting)
        {
            var msg = new ToReestrMspFromMsrCatalogItemsRequestCreator(
                received.GetItType(), //"fiasAddressObject"
                new CriteriaDefinition
            {
                Type      = "and",
                Condition = received.GetUslovies().Select(e => new ConditionDefinition
                {
                    Attribute = e.Znachenie.ToString(),
                    Operator  = "equals",
                    Value     = e.Atribut
                })
                            .ToArray()
            });
            // new List<SortingDefinition>());
            //{
            //    new SortingDefinition
            //    {
            //        SortOrder = 1,
            //        SortType = "333",
            //        TehName = "tehname"
            //    }
            //});

            var ms = msg.CreateMessage();
            var responseMessage = new HttpResponseMessage();
            var messageError    =
                $"Произошла ошибка в методе {nameof(GetCatalogItemToReestrMSP)} для сообщения {nameof(ToReestrMspFromMsrCatalogItemsRequest)}.";

            try
            {
                if (ms.Save(null, null, true))
                {
                    responseMessage = Request.CreateResponse(HttpStatusCode.OK, $"Сообщение {nameof(ToReestrMspFromMsrCatalogItemsRequest)} успешно создано.");
                }
                else
                {
                    responseMessage = Request.CreateErrorResponse(HttpStatusCode.Forbidden, messageError);
                }
            }
            catch (Exception ex)
            {
                responseMessage =
                    Request.CreateErrorResponse(HttpStatusCode.Forbidden, $"{messageError} Ошибка - {ex.Message}");
            }

            return(responseMessage);
        }