Exemple #1
0
 public IActionResult Get([FromQuery] string dn)
 {
     if (!string.IsNullOrWhiteSpace(dn))
     {
         var orgUnit = _orgService.FindByDn(dn);
         if (orgUnit == null)
         {
             return(NotFound());
         }
         return(Ok(orgUnit));
     }
     else
     {
         return(Ok(_orgService.FindAll()));
     }
 }