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