public ActionResult <BaseViewModel> DeleteRelateFromStaffToClass(DeleteRelateFromStaffToClassViewModel model)
        {
            BaseViewModel baseViewModel = new BaseViewModel();

            _facultystaffService.DeleteRelateToClass(model);

            baseViewModel.Message      = "查询成功";
            baseViewModel.ResponseCode = 200;
            return(baseViewModel);
        }
 public void DeleteRelateToClass(DeleteRelateFromStaffToClassViewModel model)
 {
     staffClassRelateRepository.RemoveByid(model.DeleteIdList);
     staffClassRelateRepository.SaveChanges();
 }