Пример #1
0
 public personal_info_t GetUserInfo(string login)
 {
     var db = new DataBaseClass();
     personal_info_t userInfo = db.GetUserInfoByLogin(login);
     if (userInfo != null)
     {
         return db.GetUserInfoByLogin(login);
     }
     return null;
 }
Пример #2
0
 public void AddNewGlobalSession(string adminID, string operatorID, DateTime date)
 {
     var db = new DataBaseClass();
     db.AddNewGlobalSession(adminID, operatorID, date);
 }
Пример #3
0
 public void CreateNewUser(personal_info_t newUserInfo)
 {
     var db = new DataBaseClass();
     db.AddNewStaffUser(newUserInfo);
 }
Пример #4
0
 public static DataBaseClass Instancedb()
 {
     return _dbClass ?? (_dbClass = new DataBaseClass());
 }