コード例 #1
0
        public string GetProfesionalScheldule(int professionalId)
        {
            AppointmentBusiness      appointmentBusiness = new AppointmentBusiness();
            List <AppointmentModels> appointmentList     = appointmentBusiness.getProfessinalScheldule(professionalId);

            return(JsonConvert.SerializeObject(appointmentList));
        }
コード例 #2
0
        public ActionResult ProfessionalLogin()
        {
            CatalogueModels catalogueProcess = new CatalogueModels();

            catalogueProcess.Table = "proceso";
            CatalogueBusiness catalogueBusiness = new CatalogueBusiness();

            ViewBag.process        = catalogueBusiness.GetListCatalogue(catalogueProcess);
            catalogueProcess.Table = "oficina";
            ViewBag.office         = catalogueBusiness.GetListCatalogue(catalogueProcess);
            catalogueProcess.Table = "asistencia";
            ViewBag.assistance     = catalogueBusiness.GetListCatalogue(catalogueProcess);

            AppointmentBusiness appointmentBusiness = new AppointmentBusiness();
            int idprofesional = Int32.Parse((string)Session["Identification"]);
            List <AppointmentModels> appointmentList = appointmentBusiness.getProfessinalScheldule(idprofesional);

            ViewBag.appointmentList = appointmentList;
            return(View("DashboardProfessional"));
        }