public static User LoadUser_ViewerPermissions(string name, string postcode) { return(DBController.Get().Users.Where(b => b.Name == name.Trim() && b.Postcode == postcode).FirstOrDefault()); }
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()); }
public void Save() { DBController.Get().Users.AddOrUpdate(this); DBController.Get().SaveChanges(); }