public UpdateLesson ( LessonEditDto itemToSave ) : |
||
itemToSave | LessonEditDto | The item to save. |
return |
public ResultDto UpdateLesson(LessonEditDto itemToSave)
{
this.SetResponseHeaderCacheExpiration();
AccountPassword credentials = this.GetCredentialsFromRequest();
AccountServerService accountService = new AccountServerService();
Guid accountId = accountService.GetAccountId(credentials.Account);
LessonServerService service = new LessonServerService();
return service.InsertUpdateLesson(itemToSave, accountId);
}