Exemple #1
0
        public ActionResult UpdateTeacher(string username)
        {
            TeacherModel model = new TeacherModel();

            ViewBag.teacher = model.GetTeacher(username);
            return(View());
        }
        public ActionResult ViewProfile()
        {
            string       username     = HttpContext.Request.Cookies["login"]["name"];
            TeacherModel teacherModel = new TeacherModel();

            ViewBag.teacher = teacherModel.GetTeacher(username);
            return(View());
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeacherLeave"/> class.
 /// </summary>
 public TeacherLeave()
 {
     Device.BeginInvokeOnMainThread(async() =>
     {
         try
         {
             _TeacherList = await TeacherModel.GetTeacher();
             TeacherLeaveLayout();
         }
         catch (Exception ex)
         {
         }
     });
 }