public bool RemovePartyCustomAttriuteValue(IEnumerable<PartyCustomAttributeValue> entities)
{
Contract.Requires(entities != null);
Contract.Requires(Contract.ForAll(entities, (PartyCustomAttributeValue e) => e != null));
Contract.Requires(Contract.ForAll(entities, (PartyCustomAttributeValue e) => e.Id >= 0));
using (IUnitOfWork uow = this.GetUnitOfWork())
{
IRepository<PartyCustomAttributeValue> repo = uow.GetRepository<PartyCustomAttributeValue>();
foreach (var entity in entities)
{
var latest = repo.Reload(entity);
repo.Delete(entity);
}
uow.Commit();
}
return (true);
}