Esempio n. 1
0
        public ActionResult Services()
        {
            ServicesDAL service = new ServicesDAL();
            var         res     = service.GetAllServices();

            return(View(res));
        }
Esempio n. 2
0
        public HomeViewModel()
        {
            ServicesDAL    objServicesDAL    = new ServicesDAL();
            AboutClinicDAL objAboutClinicDAL = new AboutClinicDAL();

            _Services = objServicesDAL.GetAllServices();
            _Abouts   = objAboutClinicDAL.GetAllAbout();
        }