public IActionResult DeleteStudentByHisId(int id) { if (id > 0) { Student student = _db.GetStudentById(id); if (student != null) { return(Ok(_db.DeleteStudent(student))); } } return(BadRequest("Error In Delete ")); }