public MultipleNoteResultModel GetNotes() { MultipleNoteResultModel result = new MultipleNoteResultModel(); try { int?memberId = IdentityHelper.GetMemberId(); if (!memberId.HasValue) { throw new OrgException("Invalid MemberId"); } NoteBL bl = new NoteBL(); var notes = bl.GetNotesByMember(memberId.Value); result.Status = true; result.Message = "Found " + notes.Count.ToString() + " notes"; result.Notes = notes; } catch (OrgException oex) { result.Status = false; result.Message = oex.Message; } catch (Exception ex) { result.Status = false; result.Message = AppConfigs.InternalErrorMessage; if (AppConfigs.DebugInternalMessage) { result.InternalMessage = ex.Message; } } return(result); }