コード例 #1
0
        public Student InsertStudent(Student objMRDTO)
        {
             dbContext.Students.Add(objMRDTO);
             dbContext.SaveChanges();
             return objMRDTO;

        }
コード例 #2
0
 public StudentBI InsertStudent(StudentBI objMRDTO)
 {
     Student obj = new Student()
     {
         Id = objMRDTO.Id,
         FirstMidName = objMRDTO.FirstMidName,
         LastName = objMRDTO.LastName,
         EnrollmentDate = objMRDTO.EnrollmentDate
     };
     obj = studentStorage.InsertStudent(obj);
     return objMRDTO;
 }