示例#1
0
 /// <summary>
 ///     Gets all users.
 /// </summary>
 /// <returns></returns>
 public List <ILookupDomainModel> GetAllUsers()
 {
     using (var context = new TranslationsEntities())
     {
         IOrderedQueryable <User> s = from t in context.Users
                                      orderby t.UserName
                                      select t;
         return(s.MapUserToDomain());
     }
 }