Ejemplo n.º 1
0
 /// <summary>
 /// Gets domains, optionally filtered by name.
 /// </summary>
 /// <param name="filter">A string to filter domain names with.</param>
 /// <returns>Returns domains.</returns>
 public async Task <IEnumerable <Domain> > GetDomains(string filter = null)
 {
     if (filter == null)
     {
         return(await DomainRepository.GetDomains());
     }
     else
     {
         return(await DomainRepository.SearchDomainsByName(filter));
     }
 }