public void UpdateStudent(Student st) { LinqToXmlObjectModel.UpdateStudent(Mapper.Map <StudentXml>(st)); }
public int GetNewID() { return(LinqToXmlObjectModel.GetNewID()); }
public void DeleteStudents(params Student[] st) { st.Select(sx => Mapper.Map <StudentXml>(sx)).ToList().ForEach(stx => LinqToXmlObjectModel.DeleteStudent(stx)); }
public IEnumerable <Student> GetAll() { return(LinqToXmlObjectModel.GetAll().Select(sx => Mapper.Map <Student>(sx))); }
public void AddStudent(Student st) { LinqToXmlObjectModel.InsertNewStudent(Mapper.Map <StudentXml>(st)); }