public async Task <IActionResult> Delete(int id)
        {
            // successful DELETE returns 204 No Content with empty body
            if (await _noticeRepository.GetNoticeById(id) is L_Notice notice)
            {
                await _noticeRepository.DeleteNoticeById(notice.NoticeId);

                return(NoContent());
            }
            return(NotFound());
        }