C# Class Dnn.Modules.Vendors.Data.DataService

Persistent data of content with DataProvider instance.
Inheritance: IDataService
Show file Open project: DNNCommunity/DNN.Vendors

Public Methods

Method Description
AddAffiliate ( int vendorId, System.DateTime startDate, System.DateTime endDate, double CPC, double CPA ) : int
AddBanner ( string BannerName, int VendorId, string ImageFile, string URL, int Impressions, double CPM, System.DateTime StartDate, System.DateTime EndDate, string UserName, int BannerTypeId, string Description, string GroupName, int Criteria, int Width, int Height ) : int
AddVendor ( int PortalId, string VendorName, string Unit, string Street, string City, string Region, string Country, string PostalCode, string Telephone, string Fax, string Cell, string Email, string Website, string FirstName, string LastName, string UserName, string LogoFile, string KeyWords, string Authorized ) : int
AddVendorClassification ( int VendorId, int ClassificationId ) : int
DeleteAffiliate ( int affiliateId ) : void
DeleteBanner ( int BannerId ) : void
DeleteVendor ( int VendorId ) : void
DeleteVendorClassifications ( int VendorId ) : void
FindBanners ( int PortalId, int BannerTypeId, string GroupName ) : IDataReader
GetAffiliate ( int affiliateId ) : IDataReader
GetAffiliates ( int vendorId ) : IDataReader
GetBanner ( int BannerId ) : IDataReader
GetBannerGroups ( int PortalId ) : DataTable
GetBanners ( int VendorId ) : IDataReader
GetVendor ( int VendorId, int PortalId ) : IDataReader
GetVendorClassifications ( int VendorId ) : IDataReader
GetVendors ( int PortalId, bool UnAuthorized, int PageIndex, int PageSize ) : IDataReader
GetVendorsByEmail ( string Filter, int PortalId, int PageIndex, int PageSize ) : IDataReader
GetVendorsByName ( string Filter, int PortalId, int PageIndex, int PageSize ) : IDataReader
UpdateAffiliate ( int affiliateId, System.DateTime startDate, System.DateTime endDate, double CPC, double CPA ) : void
UpdateAffiliateStats ( int affiliateId, int clicks, int acquisitions ) : void
UpdateBanner ( int BannerId, string BannerName, string ImageFile, string URL, int Impressions, double CPM, System.DateTime StartDate, System.DateTime EndDate, string UserName, int BannerTypeId, string Description, string GroupName, int Criteria, int Width, int Height ) : void
UpdateBannerClickThrough ( int BannerId, int VendorId ) : void
UpdateBannerViews ( int BannerId, System.DateTime StartDate, System.DateTime EndDate ) : void
UpdateVendor ( int VendorId, string VendorName, string Unit, string Street, string City, string Region, string Country, string PostalCode, string Telephone, string Fax, string Cell, string Email, string Website, string FirstName, string LastName, string UserName, string LogoFile, string KeyWords, string Authorized ) : void

Method Details

AddAffiliate() public method

public AddAffiliate ( int vendorId, System.DateTime startDate, System.DateTime endDate, double CPC, double CPA ) : int
vendorId int
startDate System.DateTime
endDate System.DateTime
CPC double
CPA double
return int

AddBanner() public method

public AddBanner ( string BannerName, int VendorId, string ImageFile, string URL, int Impressions, double CPM, System.DateTime StartDate, System.DateTime EndDate, string UserName, int BannerTypeId, string Description, string GroupName, int Criteria, int Width, int Height ) : int
BannerName string
VendorId int
ImageFile string
URL string
Impressions int
CPM double
StartDate System.DateTime
EndDate System.DateTime
UserName string
BannerTypeId int
Description string
GroupName string
Criteria int
Width int
Height int
return int

AddVendor() public method

public AddVendor ( int PortalId, string VendorName, string Unit, string Street, string City, string Region, string Country, string PostalCode, string Telephone, string Fax, string Cell, string Email, string Website, string FirstName, string LastName, string UserName, string LogoFile, string KeyWords, string Authorized ) : int
PortalId int
VendorName string
Unit string
Street string
City string
Region string
Country string
PostalCode string
Telephone string
Fax string
Cell string
Email string
Website string
FirstName string
LastName string
UserName string
LogoFile string
KeyWords string
Authorized string
return int

AddVendorClassification() public method

public AddVendorClassification ( int VendorId, int ClassificationId ) : int
VendorId int
ClassificationId int
return int

DeleteAffiliate() public method

public DeleteAffiliate ( int affiliateId ) : void
affiliateId int
return void

DeleteBanner() public method

public DeleteBanner ( int BannerId ) : void
BannerId int
return void

DeleteVendor() public method

public DeleteVendor ( int VendorId ) : void
VendorId int
return void

DeleteVendorClassifications() public method

public DeleteVendorClassifications ( int VendorId ) : void
VendorId int
return void

FindBanners() public method

public FindBanners ( int PortalId, int BannerTypeId, string GroupName ) : IDataReader
PortalId int
BannerTypeId int
GroupName string
return IDataReader

GetAffiliate() public method

public GetAffiliate ( int affiliateId ) : IDataReader
affiliateId int
return IDataReader

GetAffiliates() public method

public GetAffiliates ( int vendorId ) : IDataReader
vendorId int
return IDataReader

GetBanner() public method

public GetBanner ( int BannerId ) : IDataReader
BannerId int
return IDataReader

GetBannerGroups() public method

public GetBannerGroups ( int PortalId ) : DataTable
PortalId int
return System.Data.DataTable

GetBanners() public method

public GetBanners ( int VendorId ) : IDataReader
VendorId int
return IDataReader

GetVendor() public method

public GetVendor ( int VendorId, int PortalId ) : IDataReader
VendorId int
PortalId int
return IDataReader

GetVendorClassifications() public method

public GetVendorClassifications ( int VendorId ) : IDataReader
VendorId int
return IDataReader

GetVendors() public method

public GetVendors ( int PortalId, bool UnAuthorized, int PageIndex, int PageSize ) : IDataReader
PortalId int
UnAuthorized bool
PageIndex int
PageSize int
return IDataReader

GetVendorsByEmail() public method

public GetVendorsByEmail ( string Filter, int PortalId, int PageIndex, int PageSize ) : IDataReader
Filter string
PortalId int
PageIndex int
PageSize int
return IDataReader

GetVendorsByName() public method

public GetVendorsByName ( string Filter, int PortalId, int PageIndex, int PageSize ) : IDataReader
Filter string
PortalId int
PageIndex int
PageSize int
return IDataReader

UpdateAffiliate() public method

public UpdateAffiliate ( int affiliateId, System.DateTime startDate, System.DateTime endDate, double CPC, double CPA ) : void
affiliateId int
startDate System.DateTime
endDate System.DateTime
CPC double
CPA double
return void

UpdateAffiliateStats() public method

public UpdateAffiliateStats ( int affiliateId, int clicks, int acquisitions ) : void
affiliateId int
clicks int
acquisitions int
return void

UpdateBanner() public method

public UpdateBanner ( int BannerId, string BannerName, string ImageFile, string URL, int Impressions, double CPM, System.DateTime StartDate, System.DateTime EndDate, string UserName, int BannerTypeId, string Description, string GroupName, int Criteria, int Width, int Height ) : void
BannerId int
BannerName string
ImageFile string
URL string
Impressions int
CPM double
StartDate System.DateTime
EndDate System.DateTime
UserName string
BannerTypeId int
Description string
GroupName string
Criteria int
Width int
Height int
return void

UpdateBannerClickThrough() public method

public UpdateBannerClickThrough ( int BannerId, int VendorId ) : void
BannerId int
VendorId int
return void

UpdateBannerViews() public method

public UpdateBannerViews ( int BannerId, System.DateTime StartDate, System.DateTime EndDate ) : void
BannerId int
StartDate System.DateTime
EndDate System.DateTime
return void

UpdateVendor() public method

public UpdateVendor ( int VendorId, string VendorName, string Unit, string Street, string City, string Region, string Country, string PostalCode, string Telephone, string Fax, string Cell, string Email, string Website, string FirstName, string LastName, string UserName, string LogoFile, string KeyWords, string Authorized ) : void
VendorId int
VendorName string
Unit string
Street string
City string
Region string
Country string
PostalCode string
Telephone string
Fax string
Cell string
Email string
Website string
FirstName string
LastName string
UserName string
LogoFile string
KeyWords string
Authorized string
return void