GetLessonsOfDayToDisplay() public method

Returns the lessons of a day to display.
public GetLessonsOfDayToDisplay ( System.Guid dayId, System.Guid accountId ) : List
dayId System.Guid The day identifier.
accountId System.Guid The account identifier.
return List
        /// <summary>
        /// Returns the lesson of a day to display.
        /// </summary>
        /// <param name="id">The day identifier.</param>
        /// <returns>The lessons.</returns>
        public List<LessonDisplayDto> GetLessonOfDayToDisplay(string id)
        {
            this.SetResponseHeaderCacheExpiration();

            AccountPassword credentials = this.GetCredentialsFromRequest();
            AccountServerService accountService = new AccountServerService();
            Guid accountId = accountService.GetAccountId(credentials.Account);

            LessonServerService service = new LessonServerService();
            return service.GetLessonsOfDayToDisplay(new Guid(id), accountId);
        }