Метод | Описание | |
---|---|---|
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 | ||
Результат | string |
public AddGeneralDishToDB ( |
||
generalDish | ||
Результат | string |
public AddNewDish ( |
||
dish | ||
Результат | int |
public AddNewDishBasic ( string restId, int menuPartId, |
||
restId | string | |
menuPartId | int | |
dish | ||
Результат | int |
public AddNewMenuPartBasic ( string restaurantId, |
||
restaurantId | string | |
menuPart | ||
Результат | int |
public AddNewMenuPartModel ( |
||
MenuPart | ||
Результат | int |
public AddNewRestaurantFromOsmRest ( |
||
osmRest | ||
Результат | void |
public AddRestaurantBasicToDB ( |
||
restaurant | ||
Результат | string |
public AddRestaurantToDB ( |
||
restaurantmodel | ||
Результат | string |
public ApproveMeal ( IEnumerable |
||
meal | IEnumerable |
|
Результат | void |
public BasicRestApproveMeal ( List |
||
portions | List |
|
Результат | void |
public CalculateDistanceInKm ( |
||
location1 | ||
location2 | ||
Результат | double |
public CalculateDistanceInRad ( |
||
location1 | ||
location2 | ||
Результат | double |
public CompareAllOsmRestaurantsWithDB ( ) : |
||
Результат |
public CompareRestaurantsNames ( string rest1Name, string rest2Name ) : bool | ||
rest1Name | string | |
rest2Name | string | |
Результат | bool |
public CopySelectedDishes ( |
||
copyList | ||
Результат | void |
public CopySelectedMemuParts ( |
||
copyList | ||
Результат | void |
public DeleteDish ( |
||
Dish | ||
Результат | void |
public DeleteGeneralDish ( string id ) : void | ||
id | string | |
Результат | void |
public DeleteMenuPart ( |
||
MenuPart | ||
Результат | void |
public DeleteRestaurant ( string id ) : void | ||
id | string | |
Результат | void |
public FindSimilarRestaurants ( ) : |
||
Результат |
public GetAllGeneralDishesOrderBy ( ) : List |
||
Результат | List |
public GetAllRestaurants ( bool withMenu = true ) : List |
||
withMenu | bool | |
Результат | List |
public GetAllRestaurantsBasicSortedBy ( string sortFiled, int limit = 50 ) : List |
||
sortFiled | string | |
limit | int | |
Результат | List |
public GetAllRestaurantsInStringList ( ) : List |
||
Результат | List |
public GetChainRestaurantsBasicByName ( string name ) : List |
||
name | string | |
Результат | List |
public GetClosesMedal ( ) : |
||
Результат |
public GetCoupon ( |
||
userData | ||
userActivity | ||
Результат |
public GetCouponById ( string couponId ) : |
||
couponId | string | |
Результат |
public GetCouponModelById ( string couponId ) : |
||
couponId | string | |
Результат |
public GetDefaultItems ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | |
userLocation | ||
Результат | IList |
public GetDish ( System.Guid dishId ) : |
||
dishId | System.Guid | |
Результат |
public GetDish ( int MenuPartId, string RestaurantId, int Id, string lang = DefaultLang, |
||
MenuPartId | int | |
RestaurantId | string | |
Id | int | |
lang | string | |
restaurantModel | ||
Результат |
public GetDishBasic ( int menuPartId, string restaurantId, int Id ) : |
||
menuPartId | int | |
restaurantId | string | |
Id | int | |
Результат |
public GetDishEntitiesList ( string restId, int menuPartId ) : List |
||
restId | string | |
menuPartId | int | |
Результат | List |
public GetGeneralDishById ( string dishId ) : |
||
dishId | string | |
Результат |
public GetIdByMenuPartName ( string restaurantId, string menuPartName ) : int | ||
restaurantId | string | |
menuPartName | string | |
Результат | int |
public GetIngredientById ( string id ) : |
||
id | string | |
Результат |
public GetIngredientByNDBNo ( int ndbNo ) : |
||
ndbNo | int | |
Результат |
public GetLastMedal ( ) : |
||
Результат |
public GetMenuListBasic ( string restaurantId ) : List |
||
restaurantId | string | |
Результат | List |
public GetMenuPart ( int id, string restaurantId, string lang = DefaultLang ) : |
||
id | int | |
restaurantId | string | |
lang | string | |
Результат |
public GetMenuPartBasic ( int id, string RestaurantId ) : |
||
id | int | |
RestaurantId | string | |
Результат |
public GetPagedRestaurants ( int page, int pageSize, SortByEnum sortedBy ) : PagedList |
||
page | int | |
pageSize | int | |
sortedBy | SortByEnum | |
Результат | PagedList |
public GetPagedRestaurantsSortedNotByMongo ( int page, int pageSize, SortByEnum sortedBy ) : PagedList |
||
page | int | |
pageSize | int | |
sortedBy | SortByEnum | |
Результат | PagedList |
public GetProductByLastCharsOfBarcode ( string barcode ) : |
||
barcode | string | |
Результат |
public GetRecipeByPartialName ( string partialName ) : |
||
partialName | string | |
Результат |
public GetRestaurantBasicById ( string id ) : |
||
id | string | |
Результат |
public GetRestaurantBasicByIdFromBackup ( string id ) : |
||
id | string | |
Результат |
public GetRestaurantBasicByName ( string name ) : |
||
name | string | |
Результат |
public GetRestaurantById ( string id, string lang = DefaultLang ) : |
||
id | string | |
lang | string | |
Результат |
public GetRestaurantByName ( string name ) : |
||
name | string | |
Результат |
public GetUserLastMeal ( ) : |
||
Результат |
public GetUserLastMealViewModel ( ) : |
||
Результат |
public GoogleTranslate ( string Text, string targetlan ) : string | ||
Text | string | |
targetlan | string | |
Результат | string |
public IdsListToRestaurantListEntity ( List |
||
list | List |
|
Результат | List |
public IngredientSearch ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | |
userLocation | ||
searchCount | int | |
searchText | string | |
Результат | List |
public MenuClone ( |
||
menuCopy | ||
Результат | void |
public MenuCloneFromRestaurant ( string CopyFromId, string CopyToId ) : void | ||
CopyFromId | string | |
CopyToId | string | |
Результат | void |
public PrintCompareListCounts ( |
||
compareList | ||
Результат | void |
public SaveUserActivity ( |
||
userActivity | ||
Результат | void |
public Search ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | /// /// |
userLocation | /// /// | |
searchCount | int | |
searchText | string | /// /// |
maxDistance | double | |
Результат | IList |
public SearchGeneralDish ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | |
userLocation | ||
searchCount | int | |
searchText | string | |
Результат | List |
public SearchNearest ( System.Web.Security.MembershipUser currentUser, |
||
currentUser | System.Web.Security.MembershipUser | |
userLocation | ||
searchCount | int | |
maxDistance | double | |
Результат | IList |
public SearchNearestService ( |
||
location | ||
searchCount | int | |
maxDistance | double | |
Результат | IList |
public ServiceLayerImpl ( |
||
userProfilefacade | ||
Результат | System |
public ToStringRestaurantsList ( List |
||
restaurantsBasicList | List |
|
Результат | List |
public TranslateDish ( |
||
dish | ||
fromLang | string | |
targetlang | string | |
Результат |
public TranslateDish ( string restId, int menuPartId, int dishId, string fromLang, string targetlang ) : |
||
restId | string | |
menuPartId | int | |
dishId | int | |
fromLang | string | |
targetlang | string | |
Результат |
public TranslateMenuPart ( |
||
menuPart | ||
fromLang | string | |
targetlang | string | |
withMenu | bool | |
Результат |
public TranslateMenuPart ( |
||
menuPartModel | ||
fromLang | string | |
targetlang | string | |
withMenu | bool | |
Результат |
public TranslateMenuParts ( List |
||
menuParts | List |
|
fromLang | string | |
targetlang | string | |
withMenu | bool | |
Результат | List |
public TranslateRestaurant ( |
||
rest | ||
fromLang | string | |
targetlang | string | |
withMenu | bool | |
Результат |
public TranslateRestaurant ( string restId, string fromLang, string targetlang, bool withMenu ) : |
||
restId | string | |
fromLang | string | |
targetlang | string | |
withMenu | bool | |
Результат |
public UpdateCarbsInLastMeal ( string restaurnatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool | ||
restaurnatId | string | |
menuPartId | int | |
dishId | int | |
totalCarbohydrate | double | |
Результат | bool |
public UpdateCompareResult ( |
||
compareList | ||
Результат | void |
public UpdateCoupon ( |
||
coupon | ||
Результат | void |
public UpdateCoupon ( |
||
couponModel | ||
Результат | void |
public UpdateDbFromRestaurantOsmData ( ObjectId osmRestId ) : void | ||
osmRestId | ObjectId | |
Результат | void |
public UpdateDbFromRestaurantOsmData ( ObjectId osmRestId, ObjectId similarRestId ) : void | ||
osmRestId | ObjectId | /// Id of RestaurantOSM /// |
similarRestId | ObjectId | /// Id of existing similar restaurant in main DB /// |
Результат | void |
public UpdateDish ( |
||
dish | ||
restaurantId | string | |
menuPartId | int | |
Результат | void |
public UpdateDish ( |
||
dishModel | ||
Результат | void |
public UpdateDishAndCarbs ( |
||
Dish | ||
Результат | void |
public UpdateDishCarbs ( IPrincipal user, string restournatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool | ||
user | IPrincipal | |
restournatId | string | |
menuPartId | int | |
dishId | int | |
totalCarbohydrate | double | |
Результат | bool |
public UpdateGeneralDish ( |
||
generalDish | ||
Результат | void |
public UpdateIngredient ( |
||
ingredient | ||
Результат | void |
public UpdateMenuPart ( |
||
MenuPart | ||
Результат | void |
public UpdatePostMealSugar ( int sugarLevel ) : void | ||
sugarLevel | int | |
Результат | void |
public UpdatePreMealSugar ( int sugarLevel, int targetSugar ) : void | ||
sugarLevel | int | |
targetSugar | int | |
Результат | void |
public UpdateRestaurant ( |
||
restaurant | ||
Результат | void |
public UpdateRestaurant ( |
||
restaurantmodel | ||
Результат | void |
public UserLastMealCompleteRequirement ( ) : bool | ||
Результат | bool |
public UserUpdateRestaurant ( |
||
restaurantmodel | ||
Результат | void |