C#C
C#14mo ago
morry329#

Does this make sense? |

So I wanted to add a delete button which will delete the card div from my MVC view as per attached screenshot. Gemini suggested that a dedicated method shall be added to the controller class (to just delete the card view). It also suggested that I would add the button part in the view like this

<div class="deleteListingBtn">
                        <a href="@listingMd.ListingName, @listingMd.CategoryId" class="btn btn-danger">Delete</a>
                    </div>


For your reference more codes are here https://pastebin.com/anCaF4X3
Could you kindly point me in the right direction? I am not sure if Gemini suggested an optimal way to achieve what I wanted.
Bildschirmfoto_2024-11-03_um_16.37.22.png
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?