public async Task <ActionResult <Exam> > CreateExam(Exam exam) { if (ModelState.IsValid) { var ET = await _examRepo.AddNewExam(exam); if (ET != null) { return(Ok(ET)); } } return(NotFound()); }
public async Task <ActionResult <Exam> > CreateExam(Exam exam) { if (ModelState.IsValid) { var ET = await _examRepo.AddNewExam(exam); if (ET != null) { return(Ok(ET)); } } return(NotFound()); }