コード例 #1
0
ファイル: SupportTypeService.cs プロジェクト: FishAbe/cats
 public bool DeleteSupportType(SupportType entity)
 {
     if(entity==null) return false;
        _unitOfWork.SupportTypeRepository.Delete(entity);
        _unitOfWork.Save();
        return true;
 }
コード例 #2
0
ファイル: SupportTypeService.cs プロジェクト: FishAbe/cats
 public bool EditSupportType(SupportType entity)
 {
     _unitOfWork.SupportTypeRepository.Edit(entity);
        _unitOfWork.Save();
        return true;
 }
コード例 #3
0
ファイル: SupportTypeService.cs プロジェクト: FishAbe/cats
 public bool AddSupportType(SupportType entity)
 {
     _unitOfWork.SupportTypeRepository.Add(entity);
        _unitOfWork.Save();
        return true;
 }