Пример #1
0
        public async Task <IActionResult> Post(PostCodeRepositoryEventApiIn repositoryEvent)
        {
            var repositoryEventModel = repositoryEvent.ToLogicModel();
            await _codeRepositoryEventService.ProcessEventAsync(repositoryEventModel);

            return(Ok());
        }
Пример #2
0
 public static ProcessEventParams ToLogicModel(this PostCodeRepositoryEventApiIn source)
 {
     return(new ProcessEventParams
     {
         Id = source.Id,
         Title = source.Title,
         Description = source.Description,
         Author = source.Author,
         FileUrls = source.FileUrls
     });
 }