public ServiceResponse <StudentQuestionAnswer> Add(StudentQuestionAnswer StudentQuestionAnswer)
        {
            var response = new ServiceResponse <StudentQuestionAnswer>();

            if (response.Validation(new StudentQuestionValidation().Validate(StudentQuestionAnswer)))
            {
                response.Result = StudentQuestionAnswerRepository.Insert(StudentQuestionAnswer);
            }
            return(response);
        }
        public ServiceResponse <StudentQuestionAnswer> Update(StudentQuestionAnswer StudentQuestion)
        {
            var response = new ServiceResponse <StudentQuestionAnswer>();

            if (response.Validation(new StudentQuestionValidation().Validate(StudentQuestion)))
            {
                StudentQuestionAnswerRepository.Detach(StudentQuestion);

                var repositoryResponse = StudentQuestionAnswerRepository.GetById(StudentQuestion.Id);
                if (repositoryResponse != null)
                {
                    response.Result = StudentQuestionAnswerRepository.Update(repositoryResponse);
                }
                else
                {
                    response.SetError("Veri Bulunamadı");
                }
            }

            return(response);
        }