//根据文件删除早午晚检查信息 public void deleteDayandNightInfoByFile(DayAndNightDeleteByFIlesViewModel dayAndNightDeleteByFIlesViewModel) { var List = _dayandNightRepository.getInfoByTag(dayAndNightDeleteByFIlesViewModel.tag); var fileInfo = _fileRepository.getfileIDByPhyName(dayAndNightDeleteByFIlesViewModel.tag); _dayandNightRepository.deleteRange(List); _fileRepository.delete(fileInfo); _dayandNightRepository.SaveChanges(); }
public ActionResult DeletefilesAndInfo(DayAndNightDeleteByFIlesViewModel dayAndNightDeleteByFIlesViewModel) { _fileService.deleteDayandNightInfoByFile(dayAndNightDeleteByFIlesViewModel); return(Ok("删除文件以及相关信息成功")); }