Esempio n. 1
0
 public IActionResult Domain([FromBody] DiscoveryActiveDirectoryViewModel param)
 {
     if (ModelState.IsValid)
     {
         _discoverService.Discover(param);
         return(Ok());
     }
     else
     {
         return(BadRequest(ModelState));
     }
 }
Esempio n. 2
0
        public virtual DiscoveryResponse Discover(DiscoverRequest request)
        {
            var processor = CorePipelineService.GetProcessor(request.ProcessorId);
            var item      = DiscoveryService.Discover(processor.Pipeline, request.Taxonomy);

            return(new DiscoveryResponse()
            {
                Status = ResponseStatus.Success,
                DiscoveryItem = item
            });
        }
Esempio n. 3
0
 public IActionResult ComputerList([FromBody] DiscoveryComputerListViewModel param)
 {
     if (ModelState.IsValid)
     {
         _discoverService.Discover(param);
         return(Ok());
     }
     else
     {
         return(BadRequest(ModelState));
     }
 }