public IActionResult RemoveMedia(int id) { var currentMedia = _mediaRepository.GetById(id); if (currentMedia == null) { return(NotFound()); } else { _mediaRepository.Delete(currentMedia.MediaId); return(Ok()); } }
public bool Delete(int id) { return(mediaRepo.Delete(id)); }