public void Delete(TId entityId) { TEntity entity = repository.FindById(entityId); repository.Delete(entity); }
/// <summary> /// Deletes the specified entity. /// </summary> /// <param name="entity">The entity.</param> public virtual void Delete(TEntityDto entity) { repository.Delete(serviceMapper.Map <TEntity>(entity)); }