public IActionResult Delete(string id) { var lect = _lectureService.Get(id); if (lect == null) { return(NotFound()); } _lectureService.Remove(lect.Id); return(NoContent()); }