Exemplo n.º 1
0
        public CreateNoteResponse Create(CreateNoteViewModel note)
        {
            var id       = _noteService.Create(note);
            var response = new CreateNoteResponse()
            {
                Id = id
            };

            return(response);
        }
Exemplo n.º 2
0
        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);
        }