Example #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();
 }
Example #2
0
 public static List<School> GetSchools(this HtmlHelper helper)
 {
     SSContext db = new SSContext();
     return db.Schools.OrderBy(x => x.ShortName).ToList();
 }
Example #3
0
 public static User GetUser(this HtmlHelper helper, string username)
 {
     SSContext db = new SSContext();
     return db.Users.SingleOrDefault(x => x.UserName == username);
 }
Example #4
0
 public static List<Organization> GetOrganizations(this HtmlHelper helper)
 {
     SSContext db = new SSContext();
     return db.Organizations.OrderBy(x => x.ShortName).ToList();
 }