/// ----------------------------------------------------------------------------- /// <summary> /// gets an object from the database /// </summary> /// <remarks> /// </remarks> /// <param name="ModuleId">The Id of the module</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public List <DnnTestInfo> GetDnnTests(int ModuleId) { return(CBO.FillCollection <DnnTestInfo>(DataProvider.Instance().GetDnnTests(ModuleId))); }
/// ----------------------------------------------------------------------------- /// <summary> /// gets an object from the database /// </summary> /// <remarks> /// </remarks> /// <param name="ModuleId">The Id of the module</param> /// <param name="ItemId">The Id of the item</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public DnnTestInfo GetDnnTest(int ModuleId, int ItemId) { return((DnnTestInfo)CBO.FillObject(DataProvider.Instance().GetDnnTest(ModuleId, ItemId), typeof(DnnTestInfo))); }
/// ----------------------------------------------------------------------------- /// <summary> /// deletes an object from the database /// </summary> /// <remarks> /// </remarks> /// <param name="ModuleId">The Id of the module</param> /// <param name="ItemId">The Id of the item</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void DeleteDnnTest(int ModuleId, int ItemId) { DataProvider.Instance().DeleteDnnTest(ModuleId, ItemId); }