Watch Pre-recorded Live Shows Here
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
saad Benmakhlouf
2.1k
52
2.3k
Get Pk From View
Oct 30 2020 6:16 AM
Hi,
I use .Net Core 3.1
From Controller "Order" View "Index" I want to create a button
this button redirect me to an other controller "Invoice" View "Create"
<a href="/Invoices/Create/@item.Pk" class="Button">Create New Invoice</a>
Problem :
I want to get the Pk when i call the method Create
public
IActionResult Create(
int
someId)
{
//here i want to get the Pk
return
View();
}
Reply
Answers (
5
)
Switching from windows application to new technologies
How to get Id of currently added Rows, EF.