public async Task <List <NoteObj> > GetNotesAsync(int mcProfileId) { var note = await _svMcredit.GetNotes(mcProfileId.ToString()); if (!note.success) { return(ToResponse <List <NoteObj> >(null, note.error)); } return(note.data.objs); }
public async Task <JsonResult> GetNotes(int profileId) { //var profile = await _rpMCredit.GetTemProfileById(profileId); //if(profile==null) // return ToJsonResponse(true, null); var note = await _svMCredit.GetNotes(profileId.ToString(), GlobalData.User.IDUser); if (note == null || note.objs == null) { return(ToJsonResponse(true, "Không có dữ liệu")); } return(ToJsonResponse(true, null, note.objs)); }