Beispiel #1
0
        public ActionResult GetAll()
        {
            NurseService d   = new NurseService();
            var          res = d.GetAllNurse();

            return(Json(res));
        }
Beispiel #2
0
 // GET: Nurse
 public ActionResult Index()
 {
     using (MyContext ctx = new MyContext())
     {
         NurseService d = new NurseService();
         //d.AddNewNurse("111", "2", "3", "4", "5", 6000);
         var res = d.GetAllNurse();
         return(View(res));
     }
 }