Beispiel #1
0
        public async Task <IActionResult> GetAllSoftwareByMACDeviceAsync(
            [HttpTrigger(AuthorizationLevel.Function, "get", Route = "v1/get-software-by-mac-device")]
            HttpRequest request,
            ILogger logger)

        {
            logger.LogInformation($"{System.Reflection.MethodBase.GetCurrentMethod().Name}");
            return(await Validator(request, typeof(CreateGetSoftwareByMACDeviceRequestValidator), async (GetSoftwareByMACDeviceRequest model) =>
            {
                var response = await _softwareService.GetAllSoftwareByMACDeviceAsync(model);

                return new OkObjectResult(response);
            }));
        }