Beispiel #1
0
        public Institute GetInstituteCard(Options opt, InstituteEndPoint ep)
        {
            opt.Listing_type = "inst_by_id";
            var others = ep.GetInstitutes(opt, 0, 1);

            return(others[0]);
        }
Beispiel #2
0
        public Home(Options opt)
        {
            var app  = new MainApp();
            var inst = new InstituteEndPoint();
            var doc  = new DoctorEndPoint();

            this.institutes  = inst.GetInstitutes(opt, 0, 6);
            this.doctors     = doc.GetDoctors(opt, 0, 6);
            this.cities      = app.Set_cities(opt.Lang, opt.Cities);
            this.departments = app.GetDepartments(opt);
        }
        public InstitutesHomePage(Options opt)
        {
            var app  = new MainApp();
            var inst = new InstituteEndPoint();

            this.offers      = GetInstsOffers(opt, inst);
            this.slides      = GetSlides(opt, inst);
            this.institutes  = GetInstituteCards(opt, inst);
            this.cities      = app.Set_cities(opt.Lang, opt.Cities);
            this.departments = app.GetDepartments(opt);
        }
Beispiel #4
0
        public InstituteProfile(Options opt)
        {
            var app  = new MainApp();
            var doc  = new DoctorEndPoint();
            var inst = new InstituteEndPoint();

            this.comments       = GetComments(opt, doc);
            this.offers         = GetDoctorOffers(opt, inst);
            this.engagment      = GetEngagments(opt, doc);
            this.doctors        = GetInstDoctors(opt, doc);
            this.info           = GetInstituteCard(opt, inst);
            this.cities         = app.Set_cities(opt.Lang, opt.Cities);
            this.city           = inst.GetInstCity(this.info.Id, "en").ToLower();
            this.country        = "sa";
            opt.City            = this.city.ToLower();
            opt.Country         = this.country.ToLower();
            this.departments    = app.GetDepartments(opt);
            this.info.City_name = inst.GetInstCity(this.info.Id, opt.Lang);
        }
Beispiel #5
0
        public List <Offer> GetDoctorOffers(Options opt, InstituteEndPoint ep)
        {
            var offers = ep.GetOffers(opt, 0, 12);

            return(offers);
        }
 public List <Offer> GetInstsOffers(Options opt, InstituteEndPoint ep)
 {
     return(null);
 }
        public List <Institute> GetSlides(Options opt, InstituteEndPoint ep)
        {
            var others = ep.GetInstitutes(opt, 0, 6);

            return(others);
        }