public ShareDto Create(ShareDto dto) { var share = Mapper.Map <ShareDto, Share>(dto); _shareRepository.Create(share); return(Mapper.Map <Share, ShareDto>(_shareRepository.FindById(share.Id))); }
public void Create(IElementSettings settings, IUnitOfWork unitOfWork = null) { _shareRepository.Create((ShareSettings)settings, unitOfWork); }