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()); }
/// <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) { } }); }