Exemplo n.º 1
0
 public IActionResult EditBehaviour_P1()
 {
     if (authenticationToken)
     {
         IEnumerable <BehaviourPageOne> _bPO = _behaviourPageOneRepository.GetAll();
         return(View(_bPO));
     }
     else
     {
         return(BadRequest());
     }
 }
Exemplo n.º 2
0
        public IActionResult Primary()
        {
            IEnumerable <BehaviourPageOne> _bPO = _behaviourPageOneRepository.GetAll();

            this.i = 1;
            var teacherViewModel = new TeacherViewModel()
            {
                bPO = _bPO.ToList()
            };

            return(View(teacherViewModel));
        }