Hello friends, welcome to the next step in this lecture we will modify architecture. Now, we are using here anonymous object. So, we need some kind of model for this. So that's why we create our model. Now, I create here one folder limited model. After that, I will create one model class.
Okay? Student MD model No, I did hear some light in it after that, one more public screen name. Another friend is public marks and here public I will explain this in the next lab. What I use this course for now, you can remember, he can create this property. Okay. Now, I want to access the data.
Right now we're using in memory data, okay in memory data. So we need to create that data for our API. Now I create here one class, student context class in this clip constructor city or SATCOM press tab, constructor will now include the model folder, the model folder presented Data API models. Now here I create one list. List. model.
Please initialize this. No, this is C sharp, six syntax auto finish. Realizing property Okay. Now here I hope to add some students in this list so, how are you? Student ID is equal to one name is equal. So, after that mark is equal to 100 okay no okay Some four or five students say it some Nick.
So, I need to motivate the smart Yeah. One object, student context. Class. What is object context Okay. So z equal students not sure you know it's gone okay. So we need to access this data which is present no student content.
So how are you going to do that? Me remain here. Now I need to access student context, I create a context object, it is a static one. Okay. And after that I accessed student list now, if I run this program What is the reason? What will wait you can see here okay if I call this API you can see The whole data comes and the statistics 200 okay means our request process.
Okay. Remember not every API St. Jason prism and clients has not need a return the Jason reason sometimes it needs more. So, we will discuss this in a next slide. Thank you for watching. We will make an excellent