public Models.TeacherEvaluation.StudentPaymentModel GetStudentPaymentByID(int StudentPaymentID)
        {
            BusinessLogic.StudentPayment.StudentPaymentManager    StudentPaymentManager = new BusinessLogic.StudentPayment.StudentPaymentManager();
            BusinessEntity.TeacherEvaluation.StudentPaymentEntity StudentPayment        = StudentPaymentManager.GetStudentPaymentByID(StudentPaymentID);

            return(new Models.TeacherEvaluation.StudentPaymentModel(StudentPayment));
        }
        public List <Models.TeacherEvaluation.StudentPaymentModel> GetStudentPayments()
        {
            BusinessLogic.StudentPayment.StudentPaymentManager StudentPaymentManager = new BusinessLogic.StudentPayment.StudentPaymentManager();

            List <BusinessEntity.TeacherEvaluation.StudentPaymentEntity> StudentPayments      = StudentPaymentManager.GetStudentPayments();
            List <Models.TeacherEvaluation.StudentPaymentModel>          StudentPaymentModels = new List <Models.TeacherEvaluation.StudentPaymentModel>();

            foreach (BusinessEntity.TeacherEvaluation.StudentPaymentEntity StudentPayment in StudentPayments)
            {
                StudentPaymentModels.Add(new Models.TeacherEvaluation.StudentPaymentModel(StudentPayment));
            }

            return(StudentPaymentModels);
        }
        public BusinessEntity.Result DeleteStudentPayment(Models.TeacherEvaluation.StudentPaymentModel StudentPayment)
        {
            BusinessEntity.Result result = new BusinessEntity.Result();
            try
            {
                BusinessLogic.StudentPayment.StudentPaymentManager StudentPaymentManager = new BusinessLogic.StudentPayment.StudentPaymentManager();
                result = StudentPaymentManager.DeleteStudentPayment(StudentPayment.MapToEntity <BusinessEntity.TeacherEvaluation.StudentPaymentEntity>());

                return(result);
            }
            catch (Exception ex)
            {
                result.Status  = false;
                result.Message = "StudentPayment delete failed.";

                return(result);
            }
        }