C# Class Spontaneous.WebApp.Services.CuisineMapServices

Datei anzeigen Open project: pashkov/Spontaneous Class Usage Examples

Public Methods

Method Description
AddFinlandSwedenCuisinMap ( ) : void

Add Cuisine Maps of Finland and Sweden

AddNewCuisineMap ( CuisineMap map ) : string
CuisineMapSearch ( RestaurantBasicData rest, string region = null ) : List
CuisineMapSearch ( string queryStr, string region = null ) : List
CuisineMapsListToStringList ( List cuisineMaps ) : List
CuisineToCuisinesList ( RestaurantBasicData rest ) : RestaurantBasicData
DeleteCuisineMap ( string id ) : void
FindCuisineMapByPartOfName ( RestaurantBasicData rest ) : List

Check each cuisineMap name if containes in part of Restaurant Name or Description

FindCuisineMapsByRestName ( RestaurantBasicData rest ) : List
GetAllCuisineMaps ( ) : List
GetCuisineMapById ( string id ) : CuisineMap
GetCuisineMapByName ( string cuisineName ) : CuisineMap
IfCuisineContainsSimbols ( string cuisine ) : bool
UpdateCuisineMap ( CuisineMap map ) : void
UpdateOrCreateCuisineMap ( CuisineMap cuisineMap ) : string

If exists update, if not create new

UpdateOrCreateListCuisineMaps ( List cuisineMapsList ) : void

Method Details

AddFinlandSwedenCuisinMap() public method

Add Cuisine Maps of Finland and Sweden
public AddFinlandSwedenCuisinMap ( ) : void
return void

AddNewCuisineMap() public method

public AddNewCuisineMap ( CuisineMap map ) : string
map Spontaneous.DataModel.CuisineMap
return string

CuisineMapSearch() public method

public CuisineMapSearch ( RestaurantBasicData rest, string region = null ) : List
rest Spontaneous.DataModel.RestaurantBasicData
region string
return List

CuisineMapSearch() public method

public CuisineMapSearch ( string queryStr, string region = null ) : List
queryStr string
region string
return List

CuisineMapsListToStringList() public method

public CuisineMapsListToStringList ( List cuisineMaps ) : List
cuisineMaps List
return List

CuisineToCuisinesList() public method

public CuisineToCuisinesList ( RestaurantBasicData rest ) : RestaurantBasicData
rest Spontaneous.DataModel.RestaurantBasicData
return Spontaneous.DataModel.RestaurantBasicData

DeleteCuisineMap() public method

public DeleteCuisineMap ( string id ) : void
id string
return void

FindCuisineMapByPartOfName() public method

Check each cuisineMap name if containes in part of Restaurant Name or Description
public FindCuisineMapByPartOfName ( RestaurantBasicData rest ) : List
rest Spontaneous.DataModel.RestaurantBasicData
return List

FindCuisineMapsByRestName() public method

public FindCuisineMapsByRestName ( RestaurantBasicData rest ) : List
rest Spontaneous.DataModel.RestaurantBasicData
return List

GetAllCuisineMaps() public method

public GetAllCuisineMaps ( ) : List
return List

GetCuisineMapById() public method

public GetCuisineMapById ( string id ) : CuisineMap
id string
return Spontaneous.DataModel.CuisineMap

GetCuisineMapByName() public method

public GetCuisineMapByName ( string cuisineName ) : CuisineMap
cuisineName string
return Spontaneous.DataModel.CuisineMap

IfCuisineContainsSimbols() public method

public IfCuisineContainsSimbols ( string cuisine ) : bool
cuisine string
return bool

UpdateCuisineMap() public method

public UpdateCuisineMap ( CuisineMap map ) : void
map Spontaneous.DataModel.CuisineMap
return void

UpdateOrCreateCuisineMap() public method

If exists update, if not create new
public UpdateOrCreateCuisineMap ( CuisineMap cuisineMap ) : string
cuisineMap Spontaneous.DataModel.CuisineMap
return string

UpdateOrCreateListCuisineMaps() public method

public UpdateOrCreateListCuisineMaps ( List cuisineMapsList ) : void
cuisineMapsList List
return void