Commit Graph

162 Commits

Author SHA1 Message Date
Francesco Lorenzo D'Amico 6290ceaaf0 Delete unnecessary using statemens 2025-05-27 12:21:20 +02:00
Francesco Lorenzo D'Amico dba048620b Add some style for Detail.cshtml 2025-05-27 12:19:31 +02:00
Francesco Lorenzo D'Amico b4b8062b13 Add recipe ingredient JSON serialization and dynamic function via JS 2025-05-27 12:18:37 +02:00
Francesco Lorenzo D'Amico 3b1d9fa4bc Delete unnecessary footer and add JS-Library of SweetAlert 2025-05-27 12:14:02 +02:00
Francesco Lorenzo D'Amico 8fe20c32db Add to the FAV button @Html.AntiForgeryToken 2025-05-27 12:12:36 +02:00
Francesco Lorenzo D'Amico f2b978f35f Remove unnecessary link arround the recipeCard and improve the Recipe Detail link 2025-05-27 12:10:39 +02:00
Francesco Lorenzo D'Amico ba0e35e526 Delete unnecessary Methods and add some better Methods that improves the process 2025-05-27 12:07:19 +02:00
Francesco Lorenzo D'Amico 203b8db180 Delete unnecessary property ShoppingList 2025-05-27 12:01:06 +02:00
Francesco Lorenzo D'Amico 5a5b3c5d87 Add some Endpoint for DeleteOperation and update API Endpoint (Detail) 2025-05-27 11:58:18 +02:00
Francesco Lorenzo D'Amico 963d9f4ab1 Change from HttpPost to HttpDelete 2025-05-27 11:56:26 +02:00
Francesco Lorenzo D'Amico b21f4ea9cd - 2025-05-20 16:12:06 +02:00
Francesco Lorenzo D'Amico b1a0a41202 Add Methodf to get all Shoopinglists on endpoint of the Detail Site of Shoppinglist 2025-05-20 16:05:03 +02:00
Francesco Lorenzo D'Amico 69affbdaed Add a List of Recipes that contains a Shoppinglist to show on ShoppingLIst detail site 2025-05-20 16:04:01 +02:00
Francesco Lorenzo D'Amico 222afcd84f Add Caroussel to Shoppinglistdetail Site 2025-05-20 15:59:19 +02:00
Francesco Lorenzo D'Amico 6600c9ab13 Add AntiForgeryToken with them stuff on js request 2025-05-20 15:53:15 +02:00
Francesco Lorenzo D'Amico e59b11b32f Make a Method to avoid reduntant code and add a similar method as Getting one Shoppinglist but this time gets All Shoppinglists 2025-05-20 15:51:18 +02:00
Francesco Lorenzo D'Amico dca567ba9f Show amount of shoppinglists in the view with dynamically change of amount 2025-05-19 13:28:26 +02:00
Francesco Lorenzo D'Amico 385be506a7 Implement a method to get whole shoppinglist model 2025-05-19 13:25:35 +02:00
Francesco Lorenzo D'Amico 00cd006bf8 Create an initial ViewModel for the ShoppingList Detail 2025-05-19 13:24:38 +02:00
Francesco Lorenzo D'Amico 9c9253c94a Implement endpoint to fetch shopping list details by ID including total recipe count 2025-05-19 13:23:44 +02:00
Christian Hunziker 98dd9a049b Merge branch 'feature/Create-Recipe' into 'develop'
Create-Recipe

See merge request francesco.damico/francescos.recipes.world!14
2025-05-07 08:06:28 +00:00
franc 27d4fd5368 Solve Thread of mergeRequest 2025-05-07 10:03:02 +02:00
franc 7f6998c2de delete unnecessary view 2025-05-07 09:00:05 +02:00
franc 03932b380d change some things 2025-05-07 08:59:43 +02:00
franc a7cafb479b Use normal List instead interface list 2025-05-07 08:59:23 +02:00
franc 12b217ea59 Rename Method 2025-05-07 08:56:00 +02:00
franc 7bf43b1855 Change some things 2025-05-07 08:55:40 +02:00
franc 070df12049 Add new Attribut 2025-05-07 08:55:04 +02:00
franc d172642b1e Add an new Attribut 2025-05-07 08:54:18 +02:00
franc abb1d774fe Solve all thread from mergeRequest to RecipeController 2025-05-07 08:53:12 +02:00
franc 7168d93621 Rename Methode 2025-05-05 17:12:06 +02:00
franc a0d05dcdc2 change from ienumerable to list 2025-05-05 17:11:18 +02:00
franc 4928a3cc7d Move css style on a separate .css file 2025-05-05 17:10:40 +02:00
franc dc9a1f1b9c Move script section stuff that is implementet on more than one script section on layout 2025-05-05 17:10:05 +02:00
franc 402f5f2fe9 Rename method 2025-05-05 17:08:17 +02:00
franc 0ff81912a9 Rename Method from CreateInstructionWithImageToRecipeAsync to CreateInstructionAsync 2025-05-05 17:07:39 +02:00
franc a0044a8d30 Check recipeId null 2025-05-05 17:05:30 +02:00
franc a2e50a0195 Move all js scripts into this file 2025-05-05 12:33:05 +02:00
franc 1e6d354343 Remove js an placed to site.js 2025-05-05 12:32:32 +02:00
franc a7a5650046 Make a completly new Create view with some css style, that contains all PartialViews 2025-05-05 12:30:53 +02:00
franc 594315c473 Make link to page for create Recipe instead to show the form dynamically by button click 2025-05-05 12:29:19 +02:00
franc 1a91ec38dd Avoid datainconsistency 2025-05-05 12:26:19 +02:00
franc a76f757081 - Forgive an IFormFile Parameter for CreateInstructionWithImageToRecipeAsync
-Refactor instruction number generation to simplify null-check and remove redundant increment
- By creating an InstructionFile put Recipe Id to null for avoid Datainconsistency
2025-05-05 12:24:20 +02:00
franc 080c4eda78 Create ViewModels for the Create Recipe logic 2025-05-05 12:19:27 +02:00
franc 0d57d40651 Make Instruction and Recipe nullable for avoid data inconsistency 2025-05-05 12:18:22 +02:00
franc d131ec1d16 Implement a new endpoint to retrieve all units for a dynamic dropdown. 2025-05-05 12:17:06 +02:00
franc 000cead877 - Replaced foreach loop with for loop for better index-based access to instructions.
- Added logic to dynamically retrieve media files for each instruction using `Request.Form.Files`.
- Ensured that media files are correctly associated with their respective instructions during recipe creation.
2025-05-05 12:01:53 +02:00
franc 7976545da6 Add Method for uploading Instruction Image to Controller and put ValidateAntiForgeryKey instead of AutoValidateAntiForgeryKey 2025-05-05 11:56:15 +02:00
franc ca15b69677 create a js file with all scripts 2025-04-30 18:54:38 +02:00
franc 8b3489cf63 Add viewModels for creatingRecipes, Instruction and ingredient of Recipe 2025-04-30 18:53:20 +02:00