public async Task <IActionResult> GetAllHardwareByMACDeviceAsync( [HttpTrigger(AuthorizationLevel.Function, "get", Route = "v1/get-hardware-by-mac-device")] HttpRequest request, ILogger logger) { logger.LogInformation($"{System.Reflection.MethodBase.GetCurrentMethod().Name}"); return(await Validator(request, typeof(CreateGetHardwareByMACDeviceRequestValidator), async (GetHardwareByMACDeviceRequest model) => { var response = await _hardwareService.GetAllHardwareByMACDeviceAsync(model); return new OkObjectResult(response); })); }