private async Task<bool> SendVerifyEmaiForSuperAdminAccounts(PendingDispensary entity)
        {
            string body = "<b>" + entity.Name + "</b> is a new dispensary that has been registerd an waiting for the verification please check the pending list";
            var allUsers = HGContext.Users.AsNoTracking();
            List<string> globalAdminEmails = new List<string>();
            foreach (var user in allUsers)
            {
                if (await UserManager.IsInRoleAsync(user.Id, Role.GlobalAdmin))
                {
                    globalAdminEmails.Add(user.Email);
                }
            }

            await SendVerificationEmail(globalAdminEmails, body, "New dispensary");
            return true;
        }
        private PendingDispensary AutoMapModelToEntity(PendingDispensaryModel pendingDispensary)
        {
            var entity = new PendingDispensary()
            {
                Id = pendingDispensary.Id,
                AddressId = pendingDispensary.AddressId,
                Email = pendingDispensary.Email,
                Name = pendingDispensary.Name,
                PhoneNumber = pendingDispensary.PhoneNumber,
                PendingDispensaryStatus = PendingDispensaryStatus.Initilized,
                Type = pendingDispensary.Type,
                Website = pendingDispensary.Website,
                Password = UserManager.PasswordHasher.HashPassword(pendingDispensary.Password)
            };

            if (pendingDispensary.Address != null)
            {
                entity.Address = new Address()
                {
                    Address1 = pendingDispensary.Address.Address1,
                    Address2 = pendingDispensary.Address.Address2,
                    City = pendingDispensary.Address.City,
                    State = pendingDispensary.Address.State,
                    Zip = pendingDispensary.Address.Zip,
                    Country = pendingDispensary.Address.Country
                };
            }
            return entity;
        }