public Challenge CreateChallenge(RestContext context, ChallengeViewModel cvm ) { var challenge = CreateInstance(); FillGeneralData(challenge, cvm); FillSpecificData(challenge, context, cvm); return challenge; }
public RestaurantRepository(RestContext context) { _context = context; _restaurants = context.Restaurants; }
public RecipeRepository(RestContext context) { _context = context; _recipes = context.Recipes; }
public ChallengeController(RestContext context, ILanguageProvider languageProvider) { _context = context; _languageProvider = languageProvider; }
public IngredientController(RestContext context, ILanguageProvider languageProvider) { _context = context; _languageProvider = languageProvider; }
public FillerController(RestContext context) { _context = context; }
public RecipeController(IRecipeRepository recipeRepository, ILanguageProvider languageProvider, RestContext context) { _languageProvider = languageProvider; _recipeRepository = recipeRepository; _context = context; }
/// <summary> /// Fill the challenge with challengespecific data. /// </summary> /// <param name="challenge">The object to be filled.</param> /// <param name="context">Context where you can get data.</param> protected abstract void FillSpecificData(Challenge challenge, RestContext context, ChallengeViewModel data);
public AccountController(ApplicationUserManager userManager, ISecureDataFormat<AuthenticationTicket> accessTokenFormat, RestContext context) { UserManager = userManager; AccessTokenFormat = accessTokenFormat; _context = context; }
public AccountController(RestContext context) { _context = context; }
public LanguageProvider(RestContext context) { _context = context; }