public async Task <IActionResult> DeleteById(Guid id) { try { return(Ok(await _subCategoryService.DeleteById(id))); } catch (Exception e) { _loggerManager.LogError($"Ocurrio un error mientras se eliminaba el subcategory: {e}"); throw new ApiException(AppResources.BadRequest, HttpStatusCode.BadRequest); } }