Beispiel #1
0
        /// <summary>
        /// returns the User rate to the project which is correlated to a specific ProjectID and userID
        /// </summary>
        public static int ReturnUserProjectRate(int projectID, int userID)
        {
            DataRow dtRow = ProjectDB.ReturnUserRateAtProject(projectID, userID);

            if (dtRow != null)
            {
                return((int)dtRow["ProjectRate"]);
            }
            else
            {
                return(-1);
            }
        }