Esempio n. 1
0
 public void SetLastUser(string username)
 {
     db.DeleteAll<LastLoggedInUser>();
     var last = new LastLoggedInUser
     {
         LastUser = username
     };
     db.Insert(last);
 }
Esempio n. 2
0
 public void SetLastUser(string username, string costCentreApplicationId)
 {
     database.DeleteAll<LastLoggedInUser>();
     var last = new LastLoggedInUser
     {
         Username = username,
         CostCentreApplicationId = costCentreApplicationId
     };
     database.Insert(last);
 }