示例#1
0
        public async Task <NoteResponseModel> GetNotes(string profileId, int userId)
        {
            var model = new NoteRequestModel
            {
                Id = profileId
            };
            await _rpLog.InsertLog("mcredit-GetNote-request", model.Dump());

            var result = await BeforeSendRequest <NoteResponseModel, NoteRequestModel>(_get_notes_Api, model, userId);

            await _rpLog.InsertLog("mcredit-GetNote-result", result.Dump());

            return(result);
        }
示例#2
0
        public async Task <BaseResponse <NoteResponseModel> > GetNotes(string profileId)
        {
            var model = new NoteRequestModel
            {
                Id = profileId
            };
            await _rpLog.InsertLog("mcredit-GetNote-request", model.Dump());

            var result = await BeforeSendRequest <NoteResponseModel, NoteRequestModel>(_mcApiconfig.GetNotesApi, model);

            await _rpLog.InsertLog("mcredit-GetNote-result", result.Dump());

            return(result);
        }