public IActionResult OnPostAsync() { if (!ModelState.IsValid) { return(Page()); } StudentStore.AddStudent(Student); return(RedirectToPage("./Index")); }
public void OnGet(Guid id) { Student = StudentStore.GetStudenById(id); }
public EditModel(StudentStore studentStore) { StudentStore = studentStore; }
public IActionResult OnPostDelete(Guid id) { StudentStore.DeleteStudent(id); return(RedirectToPage()); }
public IndexModel(StudentStore studentStore) { StudentStore = studentStore; Students = StudentStore.GetStudents(); }
public StudentsController(StudentStore studentStore) { StudentStore = studentStore; }
public AddModel(StudentStore studentStore) { StudentStore = studentStore; }
public indexModel(StudentStore studentsStore) { StudentStore = studentsStore; StudentsList = studentsStore.GetStudents(); }
public IndexModel(StudentStore studentStore, ComputerStore computerStore) { StudentStore = studentStore; Students = StudentStore.GetStudents(); }
public void OnGet(Guid id) //aqui recibe el que envio en route { Student = StudentStore.GetStudentById(id); }