public async Task <IActionResult> GetTaxCategories() { const string loggerHeader = "GetTaxCategories"; var result = new ApiJsonResult(); try { var userLogin = await _userService.GetCurrentUserLogin(HttpContext); _logService.Info($"{loggerHeader} Get tax categories with tenantId {userLogin?.TenantId}"); result.Data = await _taxCategoryService.GetAll(userLogin?.TenantId).AsNoTracking().ToListAsync(); } catch (Exception ex) { result.Code = CodeModel.Fail; result.Message = ex.Message; } return(Ok(result)); }