public async Task <IActionResult> Index() { List <RehabModel> RehabList = new List <RehabModel>(); RehabList.AddRange(await _RehabRepo.GetList()); return(View(RehabList)); }
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)); }