public async Task <int> Applications()
        {
            try
            {
                var applications = await GraphServiceHelper.GetApplications(_graphClient);

                applications.ForEach(async _ =>
                {
                    try
                    {
                        var owners = await GraphServiceHelper.GetApplicationsOwner(_graphClient, _.Id);
                        CosmosDbGraphHelper.AppOwnership(_, owners);
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine(e);
                    }
                }
                                     );

                return(applications.Count);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }

            return(0);
        }