コード例 #1
0
        public Challenge CreateChallenge(RestContext context, ChallengeViewModel cvm )
        {
            var challenge = CreateInstance();

            FillGeneralData(challenge, cvm);
            FillSpecificData(challenge, context, cvm);

            return challenge;
        }
コード例 #2
0
 public RestaurantRepository(RestContext context)
 {
     _context = context;
     _restaurants = context.Restaurants;
 }
コード例 #3
0
 public RecipeRepository(RestContext context)
 {
     _context = context;
     _recipes = context.Recipes;
 }
コード例 #4
0
 public RestaurantRepository(RestContext context)
 {
     _context     = context;
     _restaurants = context.Restaurants;
 }
コード例 #5
0
 public ChallengeController(RestContext context, ILanguageProvider languageProvider)
 {
     _context = context;
     _languageProvider = languageProvider;
 }
コード例 #6
0
 public IngredientController(RestContext context, ILanguageProvider languageProvider)
 {
     _context = context;
     _languageProvider = languageProvider;
 }
コード例 #7
0
 public FillerController(RestContext context)
 {
     _context = context;
 }
コード例 #8
0
 public RecipeController(IRecipeRepository recipeRepository, ILanguageProvider languageProvider, RestContext context)
 {
     _languageProvider = languageProvider;
     _recipeRepository = recipeRepository;
     _context = context;
 }
コード例 #9
0
 /// <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);
コード例 #10
0
 public AccountController(ApplicationUserManager userManager,
     ISecureDataFormat<AuthenticationTicket> accessTokenFormat, RestContext context) {
     UserManager = userManager;
     AccessTokenFormat = accessTokenFormat;
     _context = context;
 }
コード例 #11
0
 public AccountController(RestContext context) {
     _context = context;
 }
コード例 #12
0
 public LanguageProvider(RestContext context)
 {
     _context = context;
 }
コード例 #13
0
 public RecipeRepository(RestContext context)
 {
     _context = context;
     _recipes = context.Recipes;
 }