In the Post method we first need to validate the model using ModelState.IsValid. This will make sure that student object includes all the necessary information.
確定! 回上一頁