コード例 #1
0
ファイル: Services.cs プロジェクト: moisescorrea3/Library
        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));
 }