public IActionResult EditBehaviour_P1() { if (authenticationToken) { IEnumerable <BehaviourPageOne> _bPO = _behaviourPageOneRepository.GetAll(); return(View(_bPO)); } else { return(BadRequest()); } }
public IActionResult Primary() { IEnumerable <BehaviourPageOne> _bPO = _behaviourPageOneRepository.GetAll(); this.i = 1; var teacherViewModel = new TeacherViewModel() { bPO = _bPO.ToList() }; return(View(teacherViewModel)); }