Beispiel #1
0
        public async Task <IActionResult> AddStudent(Student s)
        {
            await _studentBLL.CreateStudentAsync(s);

            return(RedirectToAction("Students"));
        }
Beispiel #2
0
 public async Task AddStudent(string studentJson)
 {
     var student = JsonConvert.DeserializeObject <Student>(studentJson);
     await _studentBll.CreateStudentAsync(student);
 }