public int Post([FromBody]RecipeHeaderData recipeHeader)
 {
     var userId = new UserManager().GetUserIdByName("Admin");
     var recipe = new Recipes
     {
         CategoryID = (int)recipeHeader.Category_ID,
         Title = recipeHeader.Title,
         HowToPrepare = recipeHeader.HowToPrepare,
         Ingredients = recipeHeader.Ingredients,
         PrepareTime = recipeHeader.PrepareTime,
         UserID = userId,
         FriendlyUrl = recipeHeader.FriendlyUrl,
         PictureUrl = recipeHeader.PictureUrl
     };
     db.Recipes.Add(recipe);
     db.SaveChanges();
     return recipe.ID;
 }
 public IHttpActionResult Put([FromBody]RecipeHeaderData recipeHeader)
 {
     var SelectedRecipe = new RecipeManager().GetRecipeHeaderData(recipeHeader.ID);
     var userId = new UserManager().GetUserIdByName("Admin");
     var recipe = new Recipes
     {
         ID = SelectedRecipe.ID,
         CategoryID = (int)recipeHeader.Category_ID,
         Title = recipeHeader.Title,
         HowToPrepare = recipeHeader.HowToPrepare,
         Ingredients = recipeHeader.Ingredients,
         PrepareTime = recipeHeader.PrepareTime,
         UserID = userId,
         FriendlyUrl = SelectedRecipe.FriendlyUrl,
         PictureUrl = recipeHeader.PictureUrl
     };
     db.Entry(recipe).State = EntityState.Modified;
     db.SaveChanges();
     return Ok();
 }