Example #1
0
        /// <summary>
        /// Returns the lesson.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <returns>The lesson.</returns>
        public LessonEditDto GetLesson(string id)
        {
            this.SetResponseHeaderCacheExpiration();

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

            LessonServerService service = new LessonServerService();

            return(service.GetLesson(new Guid(id), accountId));
        }