Exemplo n.º 1
0
 public static User LoadUser_ViewerPermissions(string name, string postcode)
 {
     return(DBController.Get().Users.Where(b => b.Name == name.Trim() && b.Postcode == postcode).FirstOrDefault());
 }
Exemplo n.º 2
0
 public static User LoadUser_EditorPermissions(string name, int pin, string postcode)
 {
     return(DBController.Get().Users.Where(a => a.Name == name && a.Pin == pin && a.Postcode == postcode)
            .FirstOrDefault());
 }
Exemplo n.º 3
0
 public void Save()
 {
     DBController.Get().Users.AddOrUpdate(this);
     DBController.Get().SaveChanges();
 }