public BorGroupMaster UpdateBorGroupMaster(BorGroupMaster updBorGroupMaster) { BorGroupMaster borGroupMaster = null; try { _borGroupMasterDal.Update(updBorGroupMaster); borGroupMaster = updBorGroupMaster; } catch (RepositoryException ex) { throw new AisinoMesServiceException("修改品号组信息失败!", ex); } return(borGroupMaster); }
public BorGroupMaster AddBorGroupMaster(BorGroupMaster newBorGroupMaster) { BorGroupMaster borGroupMaster = null; try { _borGroupMasterDal.Add(newBorGroupMaster); borGroupMaster = newBorGroupMaster; } catch (RepositoryException ex) { throw new AisinoMesServiceException("添加品号组信息失败!", ex); } return(borGroupMaster); }
public BorGroupMaster DeleteBorGroupMaster(BorGroupMaster delBorGroupMaster) { BorGroupMaster borGroupMaster = null; try { delBorGroupMaster.bor_group_deleted = true; _unitOfWork.AddAction(delBorGroupMaster, DataActions.Update); borGroupMaster = delBorGroupMaster; _unitOfWork.Save(); } catch (RepositoryException ex) { throw new AisinoMesServiceException("删除品号组信息失败!", ex); } return(borGroupMaster); }