public Student InsertStudent(Student objMRDTO) { dbContext.Students.Add(objMRDTO); dbContext.SaveChanges(); return objMRDTO; }
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; }