public async Task <IActionResult> AddStudent(Student s) { await _studentBLL.CreateStudentAsync(s); return(RedirectToAction("Students")); }
public async Task AddStudent(string studentJson) { var student = JsonConvert.DeserializeObject <Student>(studentJson); await _studentBll.CreateStudentAsync(student); }