example 3a post action method

Solutions on MaxInterview for example 3a post action method by the best coders in the world

showing results for - "example 3a post action method"
Breck
24 May 2019
1public class Student
2{
3    public int Id { get; set; }
4    public string Name { get; set; }
5}
6
7public class StudentController : ApiController
8{
9    public Student Post(Student student)
10    {
11        // save student into db
12        var insertedStudent = SaveStudent(student);
13
14        return insertedStudent;
15    }
16}
17
similar questions
queries leading to this page
example 3a post action method