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