Answers for "Example: Post Action Method"

0

Example: Post Action Method

public class Student
{
    public int Id { get; set; }
    public string Name { get; set; }
}

public class StudentController : ApiController
{
    public Student Post(Student student)
    {
        // save student into db
        var insertedStudent = SaveStudent(student);

        return insertedStudent;
    }
}
Posted by: Guest on October-12-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language