public async Task <IActionResult> Post(PostCodeRepositoryEventApiIn repositoryEvent) { var repositoryEventModel = repositoryEvent.ToLogicModel(); await _codeRepositoryEventService.ProcessEventAsync(repositoryEventModel); return(Ok()); }
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 }); }