public async Task <IActionResult> Post([FromBody] UseDataReq reqForm) { _logger.LogInformation("start notify use history service"); if (!checkInput(reqForm)) { return(Unauthorized()); } DBModels dbModel = new DBModels(); await dbModel.SaveUseHistory(reqForm.QRCode, reqForm.MachineID, reqForm.TransId, reqForm.TransTime, reqForm.balanceQty, reqForm.ExpiryDate); return(Ok(new UseData_OK())); }