Fix some formatting and Rename Refactoring
This commit is contained in:
@@ -17,6 +17,6 @@
|
|||||||
|
|
||||||
Task<Recipe> CreateRecipeForCategoryAsync(Category category, string name, string description, Difficulty difficulty, int servings, TimeSpan preparationTime, TimeSpan cookingTime);
|
Task<Recipe> CreateRecipeForCategoryAsync(Category category, string name, string description, Difficulty difficulty, int servings, TimeSpan preparationTime, TimeSpan cookingTime);
|
||||||
|
|
||||||
Task<IEnumerable<Recipe>> SerachRecipeAndIngredientAsync(string query);
|
Task<IEnumerable<Recipe>> SerachRecipeAndIngredientAsync(string searchterm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ else
|
|||||||
<div class="col-md-4 mb-3">
|
<div class="col-md-4 mb-3">
|
||||||
<div class="card h-100 shadow-sm">
|
<div class="card h-100 shadow-sm">
|
||||||
<div class="recipe-image">
|
<div class="recipe-image">
|
||||||
@{
|
@{
|
||||||
var mediaFile = recipe.MediaFiles.FirstOrDefault();
|
var mediaFile = recipe.MediaFiles.FirstOrDefault();
|
||||||
}
|
|
||||||
@if (mediaFile?.Data != null)
|
if (mediaFile?.Data != null)
|
||||||
{
|
{
|
||||||
<img src="data:@mediaFile.MimeType;base64,@Convert.ToBase64String(mediaFile.Data)"
|
<img src="data:@mediaFile.MimeType;base64,@Convert.ToBase64String(mediaFile.Data)"
|
||||||
alt="@recipe.Name"
|
alt="@recipe.Name"
|
||||||
@@ -28,6 +28,7 @@ else
|
|||||||
alt="Platzhalter"
|
alt="Platzhalter"
|
||||||
class="card-img-top" />
|
class="card-img-top" />
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body d-flex flex-column justify-content-between">
|
<div class="card-body d-flex flex-column justify-content-between">
|
||||||
|
|||||||
Reference in New Issue
Block a user