Last active
March 22, 2018 18:52
-
-
Save cyrilCodePro/7b57e3a3496ba838b2c5a92df90a2ad0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////// | |
public class StudentViewModel | |
{ | |
public string name { get; set; } | |
public int age { get; set; } | |
} | |
///////TestPostController | |
public class TestPostController : ApiController | |
{ | |
public JObject result(StudentViewModel student) | |
{ | |
StudentCrud.AddTolist(student.name, student.age); | |
JObject test = new JObject(); | |
test.Add(StudentCrud.GetStudents()); | |
return test; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment