public Models.ResultOrError <List <Models.MyCompany> > GetMyCompanies(List <Guid> ids = null, List <string> names = null)
        {
            string paramsInString = "";

            if (ids != null)
            {
                string idsInString = ConvertParamsInString <Guid> .ConvertList(ids, "id");

                paramsInString = paramsInString + ";" + idsInString;
            }
            if (names != null)
            {
                string namesInString = ConvertParamsInString <string> .ConvertList(names, "name");

                paramsInString = paramsInString + ";" + namesInString;
            }
            return(requestGenerator.getItemsFromAPI(paramsInString.Substring(1)));
        }
        public ResultOrError <List <Supply> > SearchByParameters(List <Guid> customerOrderIds = null, List <double> incomingDates = null, List <long> incomingNumbers = null,
                                                                 List <Guid> uuids            = null, List <string> updated = null, List <string> names = null, List <double> created = null, List <string> createdBy = null,
                                                                 List <string> years          = null, List <string> months  = null, List <string> days  = null)
        {
            string paramsInString = "";

            #region params for methods
            if (customerOrderIds != null)
            {
                string customerOrderIdsInString = ConvertParamsInString <Guid> .ConvertList(customerOrderIds, "customerOrder");

                paramsInString = paramsInString + ";" + customerOrderIdsInString;
            }
            if (incomingDates != null)
            {
                string datesInString = ConvertParamsInString <double> .ConvertList(incomingDates, "incomingDate");

                paramsInString = paramsInString + ";" + datesInString;
            }
            if (incomingNumbers != null)
            {
                string incomingNumberInString = ConvertParamsInString <long> .ConvertList(incomingNumbers, "incomingNumber");

                paramsInString = paramsInString + ";" + incomingNumberInString;
            }
            if (uuids != null)
            {
                string uuidsInString = ConvertParamsInString <Guid> .ConvertList(uuids, "incomingNumber");

                paramsInString = paramsInString + ";" + uuidsInString;
            }
            if (updated != null)
            {
                string updatedInString = ConvertParamsInString <string> .ConvertList(updated, "updated");

                paramsInString = paramsInString + ";" + updatedInString;
            }
            if (names != null)
            {
                string namesInString = ConvertParamsInString <string> .ConvertList(names, "name");

                paramsInString = paramsInString + ";" + namesInString;
            }
            if (created != null)
            {
                string createdInString = ConvertParamsInString <double> .ConvertList(created, "created");

                paramsInString = paramsInString + ";" + createdInString;
            }
            if (createdBy != null)
            {
                string createdByInString = ConvertParamsInString <string> .ConvertList(createdBy, "createdBy");

                paramsInString = paramsInString + ";" + createdByInString;
            }
            if (years != null)
            {
                string yearsInString = ConvertParamsInString <string> .ConvertList(years, "year");

                paramsInString = paramsInString + ";" + yearsInString;
            }
            if (months != null)
            {
                string monthsInString = ConvertParamsInString <string> .ConvertList(months, "month");

                paramsInString = paramsInString + ";" + monthsInString;
            }
            if (days != null)
            {
                string daysInString = ConvertParamsInString <string> .ConvertList(days, "day");

                paramsInString = paramsInString + ";" + daysInString;
            }
            #endregion params for methods
            return(reqestGenerator.getItemsFromAPI(paramsInString.Substring(1)));
        }
        public ResultOrError <List <Supply> > SearchByIncomingNumber(List <long> incomingNumbers)
        {
            string incomingNumbersInString = ConvertParamsInString <long> .ConvertList(incomingNumbers, "incomingNumber");

            return(reqestGenerator.getItemsFromAPI(incomingNumbersInString));
        }
        public ResultOrError <List <Supply> > SearchByIncomingDate(List <double> incomingDates)
        {
            string dates = ConvertParamsInString <double> .ConvertList(incomingDates, "incomingDate");

            return(reqestGenerator.getItemsFromAPI(dates));
        }
        public ResultOrError <List <Supply> > SearchByCustomerOrder(List <Guid> customerOrderIds)
        {
            string customerOrderIdsInString = ConvertParamsInString <Guid> .ConvertList(customerOrderIds, "customerOrder");

            return(reqestGenerator.getItemsFromAPI(customerOrderIdsInString));
        }
        public Models.ResultOrError <List <Models.Demand> > SearchByParameters(List <Guid> uuids   = null, List <string> updated        = null,
                                                                               List <string> names = null, List <Guid> customerOrderIds = null, List <double> created = null, List <string> createdBy = null,
                                                                               List <string> years = null, List <string> months         = null, List <string> days    = null)
        {
            string paramsInString = "";

            if (uuids != null)
            {
                string uuidsInString = ConvertParamsInString <Guid> .ConvertList(uuids, "uuid");

                paramsInString = paramsInString + ";" + uuidsInString;
            }
            if (updated != null)
            {
                string updatedInString = ConvertParamsInString <string> .ConvertList(updated, "updated");

                paramsInString = paramsInString + ";" + updatedInString;
            }
            if (names != null)
            {
                string namesInString = ConvertParamsInString <string> .ConvertList(names, "name");

                paramsInString = paramsInString + ";" + namesInString;
            }
            if (customerOrderIds != null)
            {
                string customerOrderIdsInString = ConvertParamsInString <Guid> .ConvertList(customerOrderIds, "customerOrder");

                paramsInString = paramsInString + ";" + customerOrderIdsInString;
            }
            if (created != null)
            {
                string createdInString = ConvertParamsInString <double> .ConvertList(created, "created");

                paramsInString = paramsInString + ";" + createdInString;
            }
            if (created != null)
            {
                string createdByInString = ConvertParamsInString <double> .ConvertList(created, "createdBy");

                paramsInString = paramsInString + ";" + createdByInString;
            }
            if (years != null)
            {
                string yearsInString = ConvertParamsInString <string> .ConvertList(years, "year");

                paramsInString = paramsInString + ";" + yearsInString;
            }
            if (months != null)
            {
                string monthsInString = ConvertParamsInString <string> .ConvertList(months, "month");

                paramsInString = paramsInString + ";" + monthsInString;
            }
            if (days != null)
            {
                string daysInString = ConvertParamsInString <string> .ConvertList(days, "day");

                paramsInString = paramsInString + ";" + daysInString;
            }
            return(requestGenerator.getItemsFromAPI(paramsInString.Substring(1)));
        }
        public Models.ResultOrError <List <Models.Demand> > SearchByCustomerOrder(List <Guid> customerOrderIds)
        {
            var filters = ConvertParamsInString <Guid> .ConvertList(customerOrderIds, "customerOrder");

            return(requestGenerator.getItemsFromAPI(filters));
        }