C# Class SendGridWebHookLibrary.Managers.SendGridEventManager

Show file Open project: paully21/SendGridWebHookExample

Public Methods

Method Description
AddEvent ( SendGridEvent sgEvent ) : bool

Adds a single event to the database

AddEvents ( List sgEvents ) : void

Using Bulk Insert to add a list of posted events all at once to database

GetEvents ( int numberToSkip, int numberToTake ) : List

Gets a list of events (by date descending) from the database

Method Details

AddEvent() public static method

Adds a single event to the database
public static AddEvent ( SendGridEvent sgEvent ) : bool
sgEvent SendGridWebHookLibrary.Models.SendGridEvent The single event to add
return bool

AddEvents() public static method

Using Bulk Insert to add a list of posted events all at once to database
public static AddEvents ( List sgEvents ) : void
sgEvents List The list of events to add
return void

GetEvents() public static method

Gets a list of events (by date descending) from the database
public static GetEvents ( int numberToSkip, int numberToTake ) : List
numberToSkip int The starting record (used for paging)
numberToTake int The number of records to return (used for paging)
return List