Exemple #1
0
 // Use this for initialization
 void Start()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
        public ActionResult Post(PostRecipe postRecipe)
        {
            var recipe = new Recipe(postRecipe);

            Context.Recipes.InsertOne(recipe);

            return(RedirectToAction("Index"));
        }