示例#1
0
        public async Task <IActionResult> Index()
        {
            List <RehabModel> RehabList = new List <RehabModel>();

            RehabList.AddRange(await _RehabRepo.GetList());
            return(View(RehabList));
        }
示例#2
0
        public async Task <IActionResult> PostInjuryLog(int id)
        {
            InputInjuryLogModel model = new InputInjuryLogModel();

            model.InjuryID = id;
            model.PostedBy = _UserManager.GetUserName(User);

            List <RehabModel> options = await _RehabRepo.GetList();

            model.RehabOptions = options;
            return(View(model));
        }