public async Task <IActionResult> CreateAsync(int id, InputModel input) { var collection = await _collectionRepository.FindAsync(id); var result = await _todoItemRepository.AddAsync(collection, input.Build()); return(new CreatedAtRouteResult("ShowItem", new { id = result.Id }, result)); }
public async Task <IActionResult> CreateAsync(InputModel input) { var result = await _repository.AddAsync(input.Build()); return(new CreatedAtRouteResult( "ShowCollection", new { id = result.Id }, result)); }