Example #1
0
 public SaveResult Add(StudentPayConfigurationModel entity)
 {
     try
     {
         ObjectParameter param1 = new ObjectParameter("periodGradeStudentTranTypeConfigurationId", entity.PeriodGradeStudentTranTypeConfigurationId);
         var             result = _context.proc_PeriodGradeStudentTranTypeConfiguration_Insert(param1, entity.PeriodGradeStudentModel.PeriodGradeStudentId,
                                                                                               entity.TransactionTypeId, entity.PayConfiguration, entity.PayAmount, 1);
         return(new SaveResult
         {
             Id = (int)param1.Value,
             Message = "Student Grade Pay Configuration was created.",
             Status = "OK"
         });
     }
     catch (Exception ex)
     {
         return(new SaveResult
         {
             Id = 0,
             Message = "Error on StudentPayConfigurationRepository Add method. " + ex.InnerException != null ? ex.InnerException.Message : ex.Message,
             Status = "ERROR"
         });
     }
 }
Example #2
0
 public IQueryable <StudentPayConfigurationModel> FindBy(StudentPayConfigurationModel entity)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public SaveResult Edit(StudentPayConfigurationModel entity)
 {
     throw new NotImplementedException();
 }