public lu_client GetClient(string token) { using (LPDataContext context = new LPDataContext()) { return(context.lu_login.Where(x => x.user_token == token).FirstOrDefault().lu_client); } }
public lu_login ValidateToken(string token) { using (LPDataContext context = new LPDataContext()) { return(context.lu_login.Where(x => x.user_token == token).FirstOrDefault()); } }
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())); } }
public CourseController(LPDataContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public LessonController(LPDataContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }