Ejemplo n.º 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]);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 5
0
        public List <Offer> GetDoctorOffers(Options opt, InstituteEndPoint ep)
        {
            var offers = ep.GetOffers(opt, 0, 12);

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

            return(others);
        }