Пример #1
0
        public async Task <IActionResult> GetById(Guid id)
        {
            try
            {
                var query = await _productDetailService.GetById(id);

                return(Ok(query));
            }
            catch (Exception e)
            {
                _loggerManager.LogError($"Ocurrio un error al obtener el product detail: {e}");
                throw new ApiException(AppResources.BadRequest, HttpStatusCode.BadRequest);
            }
        }
        public ActionResult Edit(int id)
        {
            var prod = _productDetailService.GetById(id);

            return(View(prod));
        }