public CreateNoteResponse Create(CreateNoteViewModel note) { var id = _noteService.Create(note); var response = new CreateNoteResponse() { Id = id }; return(response); }
public static CreateNoteResponse Unmarshall(UnmarshallerContext context) { CreateNoteResponse createNoteResponse = new CreateNoteResponse(); createNoteResponse.HttpResponse = context.HttpResponse; createNoteResponse.RequestId = context.StringValue("CreateNote.RequestId"); createNoteResponse.Id = context.StringValue("CreateNote.Id"); createNoteResponse.Paragraph = context.StringValue("CreateNote.Paragraph"); return(createNoteResponse); }