コード例 #1
0
ファイル: CtrStudent.cs プロジェクト: HappyBox/EFlats
        public int CalculateProfileScore(int id)
        {
            ServerDatabase.DbStudent dbStudentObj = new ServerDatabase.DbStudent();
            ServerDatabase.DbCheckEmailExists dbCheckEmailObj = new ServerDatabase.DbCheckEmailExists();
            object[] queueBasedArray = new object[3];

            dbStudentObj.GetQueueBasedData(id).CopyTo(queueBasedArray);
            //update score to the table and return it ONLY if update was successfult
            return dbStudentObj.UpdateScore(id, CalculateProfileScoreResult(queueBasedArray));
        }