コード例 #1
0
 public async Task <IActionResult> Get()
 {
     try
     {
         return(Ok(await _subCategoryService.GetDetails()));
     }
     catch (Exception e)
     {
         _loggerManager.LogError($"Ocurrio un error al obtener los subcategorys: {e}");
         throw new ApiException(AppResources.BadRequest, HttpStatusCode.BadRequest);
     }
 }