public async Task <IActionResult> Create(TopicForCreation topicForCreation) { var entity = new Topic { Title = topicForCreation.Title, Description = topicForCreation.Description, CreatedById = topicForCreation.CreatedById }; await repository.Create(entity); await repository.Save(); return(Ok()); }