public async Task <ActionResult <List <Category> > > GetCategoriesWithoutProducts() { #region Start the watch var watch = new Stopwatch(); watch.Start(); #endregion var result = await _entityServices.GetCategoriesWithoutProducts(); #region End the watch watch.Stop(); result.Meta.TotalProcessingTime = watch.ElapsedMilliseconds; #endregion return(Ok(result)); }