C# Class Tenant.Mvc.Core.Contexts.DatabaseContext.VenueContext

Mostra file Open project: Microsoft/WingTipTickets

Public Methods

Method Description
AddNewCity ( string cityName, string cityDescription = "", string cityState = "" ) : CityModel
AddNewVenue ( string venueName, int cityId ) : VenueModel
GetCities ( ) : List
GetCityById ( int cityId ) : CityModel
GetCityByName ( string cityName ) : CityModel
GetVenueByVenueId ( int venueId ) : VenueModel
GetVenues ( int venueId, int cityId ) : List

Private Methods

Method Description
GetCitiesInternal ( ) : List
GetVenueByVenueIdInternal ( int venueId ) : VenueModel
MapRowToCity ( System.Data.SqlClient.SqlDataReader reader ) : CityModel
MapRowToVenue ( System.Data.SqlClient.SqlDataReader reader ) : VenueModel

Method Details

AddNewCity() public method

public AddNewCity ( string cityName, string cityDescription = "", string cityState = "" ) : CityModel
cityName string
cityDescription string
cityState string
return Tenant.Mvc.Core.Models.CityModel

AddNewVenue() public method

public AddNewVenue ( string venueName, int cityId ) : VenueModel
venueName string
cityId int
return Tenant.Mvc.Core.Models.VenueModel

GetCities() public method

public GetCities ( ) : List
return List

GetCityById() public method

public GetCityById ( int cityId ) : CityModel
cityId int
return Tenant.Mvc.Core.Models.CityModel

GetCityByName() public method

public GetCityByName ( string cityName ) : CityModel
cityName string
return Tenant.Mvc.Core.Models.CityModel

GetVenueByVenueId() public method

public GetVenueByVenueId ( int venueId ) : VenueModel
venueId int
return Tenant.Mvc.Core.Models.VenueModel

GetVenues() public method

public GetVenues ( int venueId, int cityId ) : List
venueId int
cityId int
return List