private void btnRegistrarSolicitudCompra_Click(object sender, EventArgs e)
        {
            List <dynamic> lst = items.Select(x => new
            {
                idProduct             = x.idProduct,
                weight                = x.weight,
                remark                = x.remark,
                requiresRefrigeration = x.requieresRefrigerationBool
            }).Cast <dynamic>().ToList();

            //var lst1 = lst.Where(x => x.requieresRefrigeration == "Si").ToList();

            if (lst.Count == 0)
            {
                string text  = "Debe agregar productos para realizar esta acción";
                string title = "Información";
                MessageBox.Show(text, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                string token    = Session.Token;
                int    idClient = Session.IdProfile;

                dynamic objectAPI = new System.Dynamic.ExpandoObject();

                objectAPI.desiredDate             = Convert.ToDateTime(dtpFechaDeseadaEntrega.Value);
                objectAPI.idClient                = idClient;
                objectAPI.idPurchaseRequestType   = 2;
                objectAPI.purchaseRequestProducts = lst;



                var createNewPurchaseRequest = VirtualFairIntegration.CreateNewPurchaseRequest(token, objectAPI);

                if (createNewPurchaseRequest.statusCode == 200)
                {
                    string text  = "Se deben completar todos los campos requeridos";
                    string title = "Información";
                    MessageBox.Show(text, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else if (createNewPurchaseRequest.statusCode == 201)
                {
                    string text  = createNewPurchaseRequest.message;
                    string title = "Información";
                    MessageBox.Show(text, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else if (createNewPurchaseRequest.statusCode == 404)
                {
                    string text  = createNewPurchaseRequest.message;
                    string title = "Información";
                    MessageBox.Show(text, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }