public async Task <TestDto> CreateTest(CreateTestInput input) { var test = new Test(input.Task); await _testManager.CreateAsync(test); await CurrentUnitOfWork.SaveChangesAsync(); return(test.MapTo <TestDto>()); }
public IActionResult Create(CreateTestInput input) { var dto = _testService.Create(input); return(Ok(dto)); }