Ejemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            try
            {
                var result = await _offerService.FindAllByProductIdAsync();

                return(View(result));
            }
            catch (Exception e)
            {
                return(RedirectToAction(nameof(Error), new { message = e.Message }));
            }
        }