Bzs.Server.CloudServices.AppService.DeleteLesson C# (CSharp) Метод

DeleteLesson() публичный Метод

Deletes a lesson.
public DeleteLesson ( IdDto idToDelete ) : ResultDto
idToDelete IdDto The identifier.
Результат Bzs.Portable.DataTransferObjects.Base.ResultDto
        public ResultDto DeleteLesson(IdDto idToDelete)
        {
            this.SetResponseHeaderCacheExpiration();

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

            LessonServerService service = new LessonServerService();
            return service.DeleteLesson(idToDelete.Id, accountId);
        }