Esempio n. 1
0
 public static List<User> GetUsers(this HtmlHelper helper)
 {
     SSContext db = new SSContext();
     return db.Users.OrderBy(x => x.FirstName).OrderBy(x => x.LastName).ToList();
 }
Esempio n. 2
0
 public static List<School> GetSchools(this HtmlHelper helper)
 {
     SSContext db = new SSContext();
     return db.Schools.OrderBy(x => x.ShortName).ToList();
 }
Esempio n. 3
0
 public static User GetUser(this HtmlHelper helper, string username)
 {
     SSContext db = new SSContext();
     return db.Users.SingleOrDefault(x => x.UserName == username);
 }
Esempio n. 4
0
 public static List<Organization> GetOrganizations(this HtmlHelper helper)
 {
     SSContext db = new SSContext();
     return db.Organizations.OrderBy(x => x.ShortName).ToList();
 }