TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
saad Benmakhlouf
NA
52
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.