public bool Delete(Classifier entity)
{
Contract.Requires(entity != null);
Contract.Requires(entity.Id >= 0);
using (IUnitOfWork uow = this.GetUnitOfWork())
{
IRepository<Classifier> repo = uow.GetRepository<Classifier>();
entity = repo.Reload(entity);
//delete the Classifier
repo.Delete(entity);
// commit changes
uow.Commit();
}
// if any problem was detected during the commit, an exception will be thrown!
return (true);
}