Spencer

Spencer

  • 1.7k
  • 25
  • 867

Passing database data from one view to another in a MVC appliaction

Nov 9 2023 1:31 AM

Hopefully, one of you guys will be able to point me in the right direction, i have just embarked on my journey to learn c# and .net and I'm in the process of a practice Application that will store contacts/customers, leads, and contracts. I have built a model class with the contact class that stores, recalls, and edits but I need to merge some of this data into the lead section and then store this lead within the contact area.

I've looked online and it suggests using temp data, before researching how to do this I was hoping that you guys may be able to recommend the best solution for a novice and a little insight into how I would implement this.

Any help or advice will be appreciated.

My thoughts process is that I could potentially store all of the data within the one class but I'm assuming this would be a cheat and although it may work I wouldn't work correctly with validations in the forms, ideally, a search area in the lead section would be the best option that would populate the required details into a new lead form.


Answers (2)