コード例 #1
0
ファイル: LogsController.cs プロジェクト: lulzzz/fms-insight
 public LogEntry RecordInspectionCompleted([FromBody] NewInspectionCompleted insp)
 {
     if (string.IsNullOrEmpty(insp.InspectionType))
     {
         throw new BadRequestException("Must give inspection type");
     }
     return(_server.RecordInspectionCompleted(
                insp.MaterialID,
                insp.Process,
                insp.InspectionLocationNum,
                insp.InspectionType,
                insp.Success,
                insp.ExtraData == null ? new Dictionary <string, string>() : insp.ExtraData,
                insp.Elapsed,
                insp.Active
                ));
 }