public async Task <IActionResult> DeleteLecturer(int id) { var lecturer = await lecturerRepository.GetLecturer(id, includeRelated : false); if (lecturer == null) { return(NotFound()); } lecturerRepository.RemoveLecturer(lecturer); await unitOfWork.Complete(); return(Ok(id)); }