Exemple #1
0
        /// <summary>
        /// Добавление доклада на диск.
        /// </summary>
        public async Task InsertFileAsync(Guid reportId, FileStream file)
        {
            var report = await GetReportAsync(reportId);

            report.Path = await InsertFileOnStorage(report, file);

            _db.Update(report);
        }
Exemple #2
0
        /// <summary>
        /// Обновить информацию по докладу.
        /// </summary>
        public async Task UpdateAsync(ReportInnerModel innerModel)
        {
            var report = _mapper.Map <Report>(innerModel);

            report.Path = String.Empty;

            _db.Update(report);
            await InsertCollaboratorsAsync(innerModel.Id, innerModel.Collaborators);
        }
 public void Update(User item) => _db.Update(item);