@model Francesco.Recipes.World.Models.BackendModels.Recipe.Recipe @{ ViewData["Title"] = "Recipe Details"; }

@Model.Name

@if (Model.MediaFiles.Any() && Model.MediaFiles.First().Data != null) { var mediaFile = Model.MediaFiles.First(); if (mediaFile.Data != null) { @Model.Name } }

Description: @Model.Description

Difficulty: @Model.Difficulty

Servings: @Model.Servings

Preparation Time: @Model.PreparationTime

Cooking Time: @Model.CookingTime

Ingredients

    @foreach (var ingredient in Model.RecipeIngredients) {
  • @ingredient.Ingredient.Name - @ingredient.Quantity @(ingredient.Unit != null ? ingredient.Unit.Symbol : string.Empty)
  • }
@section Scripts { }