예제 #1
0
        public async Task <Guid> UploadSource(string title, IFormFile file)
        {
            var data = await _fileDataExporter.GetData(file);

            var source = new Source
            {
                Title   = title,
                Value   = JsonConvert.SerializeObject(data),
                Created = DateTime.Now,
                Edited  = DateTime.Now
            };

            return(await _sourceManager.SaveSource(title, source));
        }