예제 #1
0
        public ActionResult WeeklyDoctorList(string search, int?pageNo)
        {
            WeeklyDoctorListViewModel model = new WeeklyDoctorListViewModel();

            //model.SearchItem = search;

            model.PageNo = pageNo.HasValue ? pageNo.Value > 0 ? pageNo.Value : 1 : 1;

            // var totalRecords = DispensariesServices.Instance.GetDispensaryCount(search);

            model.WeeklyDoctorLists = WeeklyDoctorListServices.Instance.GetWeeklyDoctorLists(model.PageNo);

            //model.Products = ProductsServices.Instance.GetProducts(search, pageNo.Value, 6);

            //model.Pager = new Pager(totalRecords, pageNo, 6);



            if (!string.IsNullOrEmpty(search))
            {
                model.SearchItem        = search;
                model.WeeklyDoctorLists = WeeklyDoctorListServices.Instance.GetWeeklyDoctorListRound(search);
            }

            return(PartialView(model));
        }
예제 #2
0
        public ActionResult Appoint(int Id)
        {
            var product = ProductsServices.Instance.GetProduct(Id);
            WeeklyDoctorListViewModel model = new WeeklyDoctorListViewModel();
            var count = WeeklyDoctorListServices.Instance.GetCount();

            model.WeeklyDoctorLists = WeeklyDoctorListServices.Instance.GetAppointedDortorList(product.name);
            return(View(model));
        }