예제 #1
0
 public lu_client GetClient(string token)
 {
     using (LPDataContext context = new LPDataContext())
     {
         return(context.lu_login.Where(x => x.user_token == token).FirstOrDefault().lu_client);
     }
 }
예제 #2
0
 public lu_login ValidateToken(string token)
 {
     using (LPDataContext context = new LPDataContext())
     {
         return(context.lu_login.Where(x => x.user_token == token).FirstOrDefault());
     }
 }
예제 #3
0
        public string GetDomains()
        {
            using (LPDataContext context = new LPDataContext())
            {
                var domains = context.lu_client.Where(x => x.client_domain.Length > 15).ToList().Select(x => BuildURl(x.client_domain)).Distinct();

                return(string.Join(" ,", domains.ToArray()));
            }
        }
예제 #4
0
 public CourseController(LPDataContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
예제 #5
0
 public LessonController(LPDataContext context, IMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }