public void Save(MasterBinItem data) { if (data.BinItemId == 0) { var institutionId = _securityService.GetCurrentUser().InstitutionId; data.InstitutionId = institutionId; } _binItemRepository.Save(data); _binItemRepository.Commit(); }
public void Delete(MasterBinItem data) { _binItemRepository.Delete(data); _binItemRepository.Commit(); }