public ActionResult <StudentModel> PostNewStudent([FromBody] StudentModel model) { Student student = studentBL.CreateStudent(StudentModel.ToStudent(model)); StudentModel studentModel = StudentModel.ToStudentModel(student); return(studentModel); }