public static async Task AddNotify(int SchoolID, string faceID, string deviceSerial, string faceName,
                                    string authType, string inOutType, string time, string State, string deviceID = null, string snapshotUrl = null, string snapshotConten = null, float?temperature = null)
 {
     try {
         using (var notifyService = new NotifyService()) {
             await notifyService.CreatAsync(new Models.EnterAndLeave()
             {
                 DeviceSerial    = deviceSerial,
                 FaceId          = faceID,
                 FaceName        = faceName,
                 AuthType        = authType,
                 InOutType       = inOutType,
                 Time            = time,
                 DeviceId        = deviceID,
                 SnapshotContent = snapshotConten,
                 SnapshotUrl     = snapshotUrl,
                 Temperature     = temperature,
                 SchoolID        = SchoolID,
                 State           = State,
             }, true);
         }
     }
     catch (DbEntityValidationException ex) {
         Console.WriteLine(ex.Message);;
     }
 }