Example #1
0
        public double ShowFine(int id)
        {
            var student = _ripositoryStudentInfo.GetStudentById(id);

            if (student != null)
            {
                return(student.FineAmount);
            }
            else
            {
                return(0);
            }
        }
        public void InsertStudent(string[] values)
        {
            var student = _ripositoryStudentInfo.GetStudentById(Convert.ToInt32(values[0]));

            if (student == null)
            {
                _ripositoryStudentInfo.InsertStudent(Convert.ToInt32(values[0]), values[1]);
            }
        }