public async Task <IActionResult> DeleteTeacher(int id) { var deleted = await _TeacherBusiness.DeleteTeacher(id); if (deleted) { return(Ok("Deleted successfully")); } return(BadRequest()); }
public async Task <IActionResult> DeleteTeacher(int id) { var deleted = await _TeacherBusiness.DeleteTeacher(id); if (deleted) { return(Ok("Deleted successfully")); } return(BadRequest()); }