public CourseCollection SelectDBWithoutSerialization() { CourseAccessLayer courseLayer = new CourseAccessLayer(); CourseCollection collection = courseLayer.SelectAll(Constants.SP_SelectCourse); return collection; }
public string SelectDB() { CourseAccessLayer courseLayer = new CourseAccessLayer(); CourseCollection collection = courseLayer.SelectAll(Constants.SP_SelectCourse); return Serializer.GetSerialized<CourseCollection>(collection); }