Пример #1
0
        public async Task <IActionResult> get()
        {
            var products = await _publicProductService.GetAll();

            return(Ok(products));
        }
Пример #2
0
 public IActionResult Index()
 {
     _logger.LogInformation("Hello");
     return(Ok(_publicProductService.GetAll(Guid.NewGuid())));
 }
        public async Task <IActionResult> GetAll(string lang)
        {
            var data = await _product.GetAll(lang);

            return(Ok(data));
        }
 public async Task<IActionResult> Get(string languageId)
 {
     var products = await _publicProductService.GetAll(languageId);
     return Ok(products);
 }