Method | Description | |
---|---|---|
AddCouponToDB ( |
||
AddGeneralDishToDB ( |
||
AddNewDish ( |
||
AddNewDishBasic ( string restId, int menuPartId, |
||
AddNewMenuPartBasic ( string restaurantId, |
||
AddNewMenuPartModel ( |
||
AddNewRestaurantFromOsmRest ( |
Add conver RestaurantOsm to RestaurantBasicData and Add new rest to DB
|
|
AddRestaurantBasicToDB ( |
||
AddRestaurantToDB ( |
||
ApproveMeal ( IEnumerable |
||
BasicRestApproveMeal ( List |
||
CalculateDistanceInKm ( |
||
CalculateDistanceInRad ( |
||
CompareAllOsmRestaurantsWithDB ( ) : |
Compare all existing OSM restaurants in ImportedRestaurantsDB with all RestaurantBasicData in main DB in CompareList in ImportedRestaurantsDB
|
|
CompareRestaurantsNames ( string rest1Name, string rest2Name ) : bool |
Compare existing restaurants in DB with new Open Street Map restaurant list (by calling FindSimilarRestaurants
|
|
CopySelectedDishes ( |
||
CopySelectedMemuParts ( |
||
DeleteCoupon ( string id ) : void | ||
DeleteDish ( |
||
DeleteGeneralDish ( string id ) : void | ||
DeleteMenuPart ( |
||
DeleteRestaurant ( string id ) : void | ||
FindSimilarRestaurants ( ) : |
||
GetAllCoupons ( ) : List |
||
GetAllGeneralDishes ( ) : List |
||
GetAllGeneralDishesOrderBy ( ) : List |
||
GetAllIngredients ( ) : List |
||
GetAllRestaurants ( bool withMenu = true ) : List |
||
GetAllRestaurantsBasic ( ) : List |
||
GetAllRestaurantsBasicSortedBy ( string sortFiled, int limit = 50 ) : List |
||
GetAllRestaurantsInStringList ( ) : List |
||
GetChainRestaurantsBasicByName ( string name ) : List |
||
GetClosesMedal ( ) : |
||
GetCoupon ( |
||
GetCouponById ( string couponId ) : |
||
GetCouponModelById ( string couponId ) : |
||
GetDefaultItems ( System.Web.Security.MembershipUser currentUser, |
||
GetDish ( System.Guid dishId ) : |
Gets dish by unique Id.
|
|
GetDish ( int MenuPartId, string RestaurantId, int Id, string lang = DefaultLang, |
||
GetDishBasic ( int menuPartId, string restaurantId, int Id ) : |
||
GetDishEntitiesList ( string restId, int menuPartId ) : List |
||
GetGeneralDishById ( string dishId ) : |
||
GetIdByMenuPartName ( string restaurantId, string menuPartName ) : int | ||
GetIngredientById ( string id ) : |
||
GetIngredientByNDBNo ( int ndbNo ) : |
||
GetLastMedal ( ) : |
||
GetMedals ( ) : List |
||
GetMenuListBasic ( string restaurantId ) : List |
||
GetMenuPart ( int id, string restaurantId, string lang = DefaultLang ) : |
||
GetMenuPartBasic ( int id, string RestaurantId ) : |
||
GetPagedRestaurants ( int page, int pageSize, SortByEnum sortedBy ) : PagedList |
||
GetPagedRestaurantsSortedNotByMongo ( int page, int pageSize, SortByEnum sortedBy ) : PagedList |
Same to GetPagedRestaurants but sorting performed not by MongoDB query
|
|
GetProductByLastCharsOfBarcode ( string barcode ) : |
||
GetRecipeByPartialName ( string partialName ) : |
||
GetRestaurantBasicById ( string id ) : |
||
GetRestaurantBasicByIdFromBackup ( string id ) : |
||
GetRestaurantBasicByName ( string name ) : |
||
GetRestaurantById ( string id, string lang = DefaultLang ) : |
||
GetRestaurantByName ( string name ) : |
||
GetTotalPoints ( ) : int | ||
GetUserLastMeal ( ) : |
||
GetUserLastMealViewModel ( ) : |
||
GoogleTranslate ( string Text, string targetlan ) : string | ||
IdsListToRestaurantListEntity ( List |
||
IngredientSearch ( System.Web.Security.MembershipUser currentUser, |
||
MedalsNotificationCheck ( ) : bool | ||
MenuClone ( |
||
MenuCloneFromRestaurant ( string CopyFromId, string CopyToId ) : void | ||
PrintCompareListCounts ( |
Print to log compareList
|
|
SaveUserActivity ( |
||
Search ( System.Web.Security.MembershipUser currentUser, |
Returns most relevant items (Restaurants and menu items from database). Ordered by distance from the searchable item.
|
|
SearchGeneralDish ( System.Web.Security.MembershipUser currentUser, |
||
SearchNearest ( System.Web.Security.MembershipUser currentUser, |
||
SearchNearestService ( |
Will use this function to find similar restaurants in DB, while import new restaurants
|
|
ServiceLayerImpl ( ) : System | ||
ServiceLayerImpl ( |
||
ToStringRestaurantsList ( List |
||
TranslateDish ( |
||
TranslateDish ( string restId, int menuPartId, int dishId, string fromLang, string targetlang ) : |
||
TranslateMenuPart ( |
||
TranslateMenuPart ( |
||
TranslateMenuParts ( List |
||
TranslateRestaurant ( |
||
TranslateRestaurant ( string restId, string fromLang, string targetlang, bool withMenu ) : |
||
TurnOffMedalFlag ( ) : bool | ||
UpdateCarbsInLastMeal ( string restaurnatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool | ||
UpdateCompareResult ( |
If find new restaurants, add them to DB, if already exists compare attributes and update if necessary
|
|
UpdateCoupon ( |
||
UpdateCoupon ( |
||
UpdateDbFromRestaurantOsmData ( ObjectId osmRestId ) : void |
Should add new restaurant if not exists or add new data to existing restaurant
|
|
UpdateDbFromRestaurantOsmData ( ObjectId osmRestId, ObjectId similarRestId ) : void |
Should add new restaurant if not exists or add new data to existing restaurant
|
|
UpdateDish ( |
Only for update dish image functions and Localized translateions
|
|
UpdateDish ( |
||
UpdateDishAndCarbs ( |
||
UpdateDishCarbs ( IPrincipal user, string restournatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool |
Updates dish carbohidrates, writes to user history
|
|
UpdateGeneralDish ( |
||
UpdateIngredient ( |
||
UpdateMenuPart ( |
||
UpdatePostMealSugar ( int sugarLevel ) : void | ||
UpdatePreMealSugar ( int sugarLevel, int targetSugar ) : void | ||
UpdateRestaurant ( |
||
UpdateRestaurant ( |
||
UserLastMealCompleteRequirement ( ) : bool | ||
UserUpdateRestaurant ( |
||
VerifyUserLastMeal ( ) : double |
public AddCouponToDB ( |
||
coupon | ||
return | string |
public AddGeneralDishToDB ( |
||
generalDish | ||
return | string |
public AddNewDish ( |
||
dish | ||
return | int |
public AddNewDishBasic ( string restId, int menuPartId, |
||
restId | string | |
menuPartId | int | |
dish | ||
return | int |
public AddNewMenuPartBasic ( string restaurantId, |
||
restaurantId | string | |
menuPart | ||
return | int |
public AddNewMenuPartModel ( |
||
MenuPart | ||
return | int |
public AddNewRestaurantFromOsmRest ( |
||
osmRest | ||
return | void |
public AddRestaurantBasicToDB ( |
||
restaurant | ||
return | string |
public AddRestaurantToDB ( |
||
restaurantmodel | ||
return | string |
public ApproveMeal ( IEnumerable |
||
meal | IEnumerable |
|
return | void |
public BasicRestApproveMeal ( List |
||
portions | List |
|
return | void |
public CalculateDistanceInKm ( |
||
location1 | ||
location2 | ||
return | double |
public CalculateDistanceInRad ( |
||
location1 | ||
location2 | ||
return | double |
public CompareAllOsmRestaurantsWithDB ( ) : |
||
return |
public CompareRestaurantsNames ( string rest1Name, string rest2Name ) : bool | ||
rest1Name | string | |
rest2Name | string | |
return | bool |
public CopySelectedDishes ( |
||
copyList | ||
return | void |
public CopySelectedMemuParts ( |
||
copyList | ||
return | void |
public DeleteDish ( |
||
Dish | ||
return | void |
public DeleteGeneralDish ( string id ) : void | ||
id | string | |
return | void |
public DeleteMenuPart ( |
||
MenuPart | ||
return | void |
public FindSimilarRestaurants ( ) : |
||
return |
public GetAllRestaurants ( bool withMenu = true ) : List |
||
withMenu | bool | |
return | List |
public GetAllRestaurantsBasicSortedBy ( string sortFiled, int limit = 50 ) : List |
||
sortFiled | string | |
limit | int | |
return | List |
public GetAllRestaurantsInStringList ( ) : List |
||
return | List |
public GetChainRestaurantsBasicByName ( string name ) : List |
||
name | string | |
return | List |
public GetClosesMedal ( ) : |
||
return |
public GetCoupon ( |
||
userData | ||
userActivity | ||
return |
public GetCouponById ( string couponId ) : |
||
couponId | string | |
return |
public GetCouponModelById ( string couponId ) : |
||
couponId | string | |
return |
public GetDefaultItems ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | |
userLocation | ||
return | IList |
public GetDish ( System.Guid dishId ) : |
||
dishId | System.Guid | |
return |
public GetDish ( int MenuPartId, string RestaurantId, int Id, string lang = DefaultLang, |
||
MenuPartId | int | |
RestaurantId | string | |
Id | int | |
lang | string | |
restaurantModel | ||
return |
public GetDishBasic ( int menuPartId, string restaurantId, int Id ) : |
||
menuPartId | int | |
restaurantId | string | |
Id | int | |
return |
public GetDishEntitiesList ( string restId, int menuPartId ) : List |
||
restId | string | |
menuPartId | int | |
return | List |
public GetGeneralDishById ( string dishId ) : |
||
dishId | string | |
return |
public GetIdByMenuPartName ( string restaurantId, string menuPartName ) : int | ||
restaurantId | string | |
menuPartName | string | |
return | int |
public GetIngredientById ( string id ) : |
||
id | string | |
return |
public GetIngredientByNDBNo ( int ndbNo ) : |
||
ndbNo | int | |
return |
public GetLastMedal ( ) : |
||
return |
public GetMenuListBasic ( string restaurantId ) : List |
||
restaurantId | string | |
return | List |
public GetMenuPart ( int id, string restaurantId, string lang = DefaultLang ) : |
||
id | int | |
restaurantId | string | |
lang | string | |
return |
public GetMenuPartBasic ( int id, string RestaurantId ) : |
||
id | int | |
RestaurantId | string | |
return |
public GetPagedRestaurants ( int page, int pageSize, SortByEnum sortedBy ) : PagedList |
||
page | int | |
pageSize | int | |
sortedBy | SortByEnum | |
return | PagedList |
public GetPagedRestaurantsSortedNotByMongo ( int page, int pageSize, SortByEnum sortedBy ) : PagedList |
||
page | int | |
pageSize | int | |
sortedBy | SortByEnum | |
return | PagedList |
public GetProductByLastCharsOfBarcode ( string barcode ) : |
||
barcode | string | |
return |
public GetRecipeByPartialName ( string partialName ) : |
||
partialName | string | |
return |
public GetRestaurantBasicById ( string id ) : |
||
id | string | |
return |
public GetRestaurantBasicByIdFromBackup ( string id ) : |
||
id | string | |
return |
public GetRestaurantBasicByName ( string name ) : |
||
name | string | |
return |
public GetRestaurantById ( string id, string lang = DefaultLang ) : |
||
id | string | |
lang | string | |
return |
public GetRestaurantByName ( string name ) : |
||
name | string | |
return |
public GetUserLastMealViewModel ( ) : |
||
return |
public GoogleTranslate ( string Text, string targetlan ) : string | ||
Text | string | |
targetlan | string | |
return | string |
public IdsListToRestaurantListEntity ( List |
||
list | List |
|
return | List |
public IngredientSearch ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | |
userLocation | ||
searchCount | int | |
searchText | string | |
return | List |
public MenuClone ( |
||
menuCopy | ||
return | void |
public MenuCloneFromRestaurant ( string CopyFromId, string CopyToId ) : void | ||
CopyFromId | string | |
CopyToId | string | |
return | void |
public PrintCompareListCounts ( |
||
compareList | ||
return | void |
public SaveUserActivity ( |
||
userActivity | ||
return | void |
public Search ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | /// /// |
userLocation | /// /// | |
searchCount | int | |
searchText | string | /// /// |
maxDistance | double | |
return | IList |
public SearchGeneralDish ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | |
userLocation | ||
searchCount | int | |
searchText | string | |
return | List |
public SearchNearest ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | |
userLocation | ||
searchCount | int | |
maxDistance | double | |
return | IList |
public SearchNearestService ( |
||
location | ||
searchCount | int | |
maxDistance | double | |
return | IList |
public ServiceLayerImpl ( |
||
userProfilefacade | ||
return | System |
public ToStringRestaurantsList ( List |
||
restaurantsBasicList | List |
|
return | List |
public TranslateDish ( |
||
dish | ||
fromLang | string | |
targetlang | string | |
return |
public TranslateDish ( string restId, int menuPartId, int dishId, string fromLang, string targetlang ) : |
||
restId | string | |
menuPartId | int | |
dishId | int | |
fromLang | string | |
targetlang | string | |
return |
public TranslateMenuPart ( |
||
menuPart | ||
fromLang | string | |
targetlang | string | |
withMenu | bool | |
return |
public TranslateMenuPart ( |
||
menuPartModel | ||
fromLang | string | |
targetlang | string | |
withMenu | bool | |
return |
public TranslateMenuParts ( List |
||
menuParts | List |
|
fromLang | string | |
targetlang | string | |
withMenu | bool | |
return | List |
public TranslateRestaurant ( |
||
rest | ||
fromLang | string | |
targetlang | string | |
withMenu | bool | |
return |
public TranslateRestaurant ( string restId, string fromLang, string targetlang, bool withMenu ) : |
||
restId | string | |
fromLang | string | |
targetlang | string | |
withMenu | bool | |
return |
public UpdateCarbsInLastMeal ( string restaurnatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool | ||
restaurnatId | string | |
menuPartId | int | |
dishId | int | |
totalCarbohydrate | double | |
return | bool |
public UpdateCompareResult ( |
||
compareList | ||
return | void |
public UpdateCoupon ( |
||
coupon | ||
return | void |
public UpdateCoupon ( |
||
couponModel | ||
return | void |
public UpdateDbFromRestaurantOsmData ( ObjectId osmRestId ) : void | ||
osmRestId | ObjectId | |
return | void |
public UpdateDbFromRestaurantOsmData ( ObjectId osmRestId, ObjectId similarRestId ) : void | ||
osmRestId | ObjectId | /// Id of RestaurantOSM /// |
similarRestId | ObjectId | /// Id of existing similar restaurant in main DB /// |
return | void |
public UpdateDish ( |
||
dish | ||
restaurantId | string | |
menuPartId | int | |
return | void |
public UpdateDish ( |
||
dishModel | ||
return | void |
public UpdateDishAndCarbs ( |
||
Dish | ||
return | void |
public UpdateDishCarbs ( IPrincipal user, string restournatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool | ||
user | IPrincipal | |
restournatId | string | |
menuPartId | int | |
dishId | int | |
totalCarbohydrate | double | |
return | bool |
public UpdateGeneralDish ( |
||
generalDish | ||
return | void |
public UpdateIngredient ( |
||
ingredient | ||
return | void |
public UpdateMenuPart ( |
||
MenuPart | ||
return | void |
public UpdatePostMealSugar ( int sugarLevel ) : void | ||
sugarLevel | int | |
return | void |
public UpdatePreMealSugar ( int sugarLevel, int targetSugar ) : void | ||
sugarLevel | int | |
targetSugar | int | |
return | void |
public UpdateRestaurant ( |
||
restaurant | ||
return | void |
public UpdateRestaurant ( |
||
restaurantmodel | ||
return | void |
public UserLastMealCompleteRequirement ( ) : bool | ||
return | bool |
public UserUpdateRestaurant ( |
||
restaurantmodel | ||
return | void |