Ejemplo n.º 1
0
 public bool UpdateEmployeeCardSessions(string empcardNumber, System.Nullable <System.DateTime> empcardTime, System.Nullable <int> installationNo, string type)
 {
     using (ModuleProc PROC = new ModuleProc(this.DYN_MODULE_NAME, "UpdateEmployeeCardSessions"))
     {
         Log.Info(PROC, "Get the Display Message for the player");
         try
         {
             using (ExCommsSQLDataAccess DataContext = this.GetDataContext())
             {
                 DataContext.esp_InsertEmployeeSessionDetails(empcardNumber, empcardTime, installationNo, type);
                 Log.Info(PROC, "Session Details Inserted successfully");
                 return(true);
             }
         }
         catch (Exception ex)
         {
             Log.Exception(ex);
             Log.Info(PROC, "Session Details Insertion Failed");
             return(false);
         }
     }
 }