예제 #1
0
        public void Delete(TId entityId)
        {
            TEntity entity = repository.FindById(entityId);

            repository.Delete(entity);
        }
예제 #2
0
 /// <summary>
 /// Deletes the specified entity.
 /// </summary>
 /// <param name="entity">The entity.</param>
 public virtual void Delete(TEntityDto entity)
 {
     repository.Delete(serviceMapper.Map <TEntity>(entity));
 }