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

            var templateOption = await _context.TemplateOptions.Take(Quantity).Where(c => c.Name.StartsWith(Name) || c.Name.Contains(Name) || c.Name.EndsWith(Name)).Select(p => new TemplateOption {
                OptionId = p.Id, OptionName = p.Name
            }).ToListAsync();

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

            result.Code            = 100;
            result.Message         = "Success";
            result.templateOptions = templateOption;
            return(Ok(result));
        }
        public async Task <IActionResult> GetTemplateOptions(TemplateOptionsRequest request)
        {
            var result = new TemplateOptionsResponse();

            var templateOption = await _context.TemplateOptions.Skip(request.Skip).Take(request.Quantity).Select(p => new TemplateOption {
                OptionId = p.Id, OptionName = p.Name
            }).ToListAsync();

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

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