Exemple #1
0
        // GET: /Personnel/BloodType/
        public ActionResult Index()
        {
            //var a = PersonnelContext.BloodTypes.ToList();
            var r = _bloodTypeService.GetAll().MapModelToViewModel();

            return(View(r));
        }
        public ActionResult Read()
        {
            //StsContext db = new StsContext();
            //db.Configuration.ProxyCreationEnabled = false;
            //var a = db.BloodTypes.ToArray();
            var r = _bloodTypeService.GetAll().MapModelToViewModel();

            return(Json(r, JsonRequestBehavior.AllowGet));
        }