public int GetRemainingCreditByTeacherId(int id)
        {
            int creditToTaken        = _teacherGateway.GetAllTeachersByTeacherId(id);
            int remainingCredit      = 0;
            int sumOfRemainingCredit = _courseAssignTeacherGateway.GetSumAssainCreeditByTeacherId(id);

            if (sumOfRemainingCredit == 0)
            {
                remainingCredit = creditToTaken;
            }
            else
            {
                remainingCredit = creditToTaken - sumOfRemainingCredit;
            }


            return(remainingCredit);
        }
 public int GetAllTeachersByTeacherId(int id)
 {
     return(_teacherGateway.GetAllTeachersByTeacherId(id));
 }