public async Task <IActionResult> GetSearchMethodForTempOptionParams(string Name, int Quantity)
        {
            var result = new TempOptionParamsResponse();

            var tempOptionParams = await _context.TempOptionParams.Take(Quantity).Where(c => c.Name.StartsWith(Name) || c.Name.Contains(Name) || c.Name.EndsWith(Name)).Select(p => new TempOptionParam {
                ParameterId = p.Id, ParameterName = p.Name
            }).ToListAsync();

            if (tempOptionParams.Count == 0)
            {
                result.Code    = -100;
                result.Message = "Can't get products with given parameters.";
                return(Ok(result));
            }

            result.Code             = 100;
            result.Message          = "Success";
            result.tempOptionParams = tempOptionParams;
            return(Ok(result));
        }
        public async Task <IActionResult> GetTempOptionParams(TempOptionParamsRequest request)
        {
            var result = new TempOptionParamsResponse();

            var tempOptionParams = await _context.TempOptionParams.Skip(request.Skip).Take(request.Quantity).Select(p => new TempOptionParam {
                ParameterId = p.Id, ParameterName = p.Name
            }).ToListAsync();

            if (tempOptionParams.Count == 0)
            {
                result.Code    = -100;
                result.Message = "Can't get products with given parameters.";
                return(Ok(result));
            }

            result.Code             = 100;
            result.Message          = "Success";
            result.tempOptionParams = tempOptionParams;
            return(Ok(result));
        }