public async Task <ActionResult <Note> > Post(NoteDto item) { var note = new Note { Id = item.Id, DateCreated = DateTime.Now, Contents = item.Contents, Revised = false, CategoryId = item.CategoryId, Tags = item.Tags }; await _tagRepository.AddAll(note.Tags); var created = await _noteRepository.Create(note); return(CreatedAtAction(nameof(this.Get), new { id = created.Id }, created)); }