示例#1
0
        public int PradelstosDienos()
        {
            int      virsytuDienuSk = 0;
            DateTime grazinimoData  = PaemimoData.AddDays(DienosGrazinti);

            if (!ArLaikuGrazino())
            {
                virsytuDienuSk = (DateTime.Now - grazinimoData).Days;
            }
            return(virsytuDienuSk);
        }
示例#2
0
        public bool Validate()
        {
            var      isValid     = true;
            DateTime pridetaData = PaemimoData.AddDays(DienosGrazinti);

            if (pridetaData <= DateTime.Now.Date)
            {
                isValid = false;
            }
            return(isValid);
        }
示例#3
0
        public bool ArLaikuGrazino()
        {
            bool     arLaiku       = true;
            DateTime grazinimoData = PaemimoData.AddDays(DienosGrazinti);

            if (grazinimoData <= DateTime.Now)
            {
                arLaiku = false;
            }
            return(arLaiku);
        }