public ShareDto Create(ShareDto dto)
        {
            var share = Mapper.Map <ShareDto, Share>(dto);

            _shareRepository.Create(share);

            return(Mapper.Map <Share, ShareDto>(_shareRepository.FindById(share.Id)));
        }
Пример #2
0
 public void Create(IElementSettings settings, IUnitOfWork unitOfWork = null)
 {
     _shareRepository.Create((ShareSettings)settings, unitOfWork);
 }