public void Add(PublicationModel model)
        {
            var entity = PublicationFactory.Create(model);

            _publicationRepository.Add(entity);

            model.Id = entity.Id;
        }
        public void Update(PublicationModel model)
        {
            var entity = _publicationRepository.Get(model.Id);

            entity.Authors = model.Authors;
            entity.Journal = model.Journal;
            entity.Title   = model.Title;
            entity.File    = _publicationFileRepository.Get(entity.FileId);
            _publicationRepository.Update(entity);
        }
 public static PublicationDbEntity Create(PublicationModel model)
 {
     if (model == default)
     {
         return(default);