UpdateTeacher() public method

Updates a teacher.
public UpdateTeacher ( TeacherEditDto itemToSave, System.Guid accountId ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Teacher.TeacherEditDto The item to save.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto
        /// <summary>
        /// Updates a teacher.
        /// </summary>
        /// <param name="itemToSave">The item to save.</param>
        /// <returns>The result.</returns>
        public ResultDto UpdateTeacher(TeacherEditDto itemToSave)
        {
            this.SetResponseHeaderCacheExpiration();

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

            TeacherServerService service = new TeacherServerService();
            return service.UpdateTeacher(itemToSave, accountId);
        }