Exemplo n.º 1
0
        public int GetYearsInClub(string memberId)
        {
            int daysInClub  = DALUtility.GetMemberDaysInClub(memberId);
            int yearsInClub = 0;
            int out_DaysInClub;

            if (int.TryParse(Convert.ToString(daysInClub), out out_DaysInClub) == false)
            {
                out_DaysInClub = 0;
            }

            yearsInClub = (int)(out_DaysInClub / 365.25);


            return(yearsInClub);
        }