public async Task <Result <IList <GradeSheetMark> > > GetGradeSheetAllMarks(string sessionId, string guid) { this.logger.LogDebug("GetGradeSheetAllMarks"); try { var res = await client.GetGradeSheetAllMarks(sessionId, guid); var isAuthorized = CheckAuthorization(res); if (!isAuthorized) { return(Result <IList <GradeSheetMark> > .Failure(new UnauthorizedAccessException())); } return(Result <IList <GradeSheetMark> > .Success(converter.ParseGradeSheetMarks(res))); } catch (Exception e) { this.logger.LogError(e, "GetGradeSheetAllMarks"); return(Result <IList <GradeSheetMark> > .Failure(e)); } }