public string DomainPermission()
        {
            string currentId     = CurrentAccount.CustomerId;
            var    domainList    = new List <HijackingDomainDto>();
            var    allowedDomain = new List <DomainTag>();

            try
            {
                if (currentId.Equals("TOFFSTECH"))
                {
                    domainList = hijackingDomainService.GetAll();
                }
                else
                {
                    domainList = hijackingDomainService.Find(p => p.CustomerId.Equals(currentId));
                }
                allowedDomain.AddRange(domainList.Select(s => new DomainTag {
                    value = s.Protocol + s.Domain, text = s.Protocol + s.Domain
                }));
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }
            return(JsonConvert.SerializeObject(allowedDomain));
        }
 public string GroupSearch(string customerId)
 {
     return(JsonConvert.SerializeObject(hijackingDomainService.Find(p => p.CustomerId.Equals(customerId))));
 }