Exemplo n.º 1
0
 public ActionResult Index(Student1 student)
 {
     if (ModelState.IsValid)
     {
         return(View(student));
     }
     else
     {
         Response.StatusCode = (int)HttpStatusCode.BadRequest;
         return(View(student));
     }
 }
        //
        // GET: /Json/

        public ActionResult Index()
        {
            Student1 student = new Student1();

            return(View(student));
        }