public void Add(TEntityDto entity) { repository.Add(Mapper.Map <TEntity>(entity)); }
/// <summary> /// Adds the specified entity. /// </summary> /// <param name="entity">The entity.</param> public virtual void Add(TEntityDto entity) { repository.Add(serviceMapper.Map <TEntity>(entity)); }