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
Guest User
Tech Writer
64
2.7k
Update value from a model with one from another model
Apr 28 2021 3:13 PM
Hello, I have a project for school to make an auction website.
I managed to make the controller to Add Bids for Auction, but now I don't know how to update the "Start Price" from Auction with value from bidders:
I don't know exactly but it can be done in the view only?
I tried to do that, but without success.
<dd>
@Html.DisplayFor(model => model.DataIncheiere)
</dd>
<dt>
@Html.DisplayNameFor(model => model.PretInitial)
</dt>
<dd>
@Html.DisplayFor(model => model.PretInitial== model.PretInitial + model.Oferte.LastOrDefault(b =>(b.ValoareBid).ToString()))
</dd>
<dt>
@Html.DisplayNameFor(model => model.Produse.NumeProdus)
</dt>
Reply
Answers (
5
)
How to join 3 entities in linq when using sql?
Compare in a single controller two models