示例#1
0
 public bool DeleteMaster(Master master)
 {
     if (master == null) return false;
     _unitOfWork.MasterRepository.Delete(master);
     _unitOfWork.Save();
     return true;
 }
示例#2
0
 public bool EditMaster(Master master)
 {
     _unitOfWork.MasterRepository.Edit(master);
     _unitOfWork.Save();
     return true;
 }
示例#3
0
 public bool AddMaster(Master master)
 {
     _unitOfWork.MasterRepository.Add(master);
     _unitOfWork.Save();
     return true;
 }