Hello,
I am writing my own ASP.NET 4.5 MVC 5 C# application to test my learning. Basically, I want to populate my model with quotes from Carl Sagan and Albert Einstein. The ultimate goal is when the uses clicks the submit button I then want to go to a new view
that picks a quote at random. It would be a lot easier to do that if I could just pass my model into a view with data there.
I'll show you what I have done, but I think it is the wrong approach. I want a better way to simulate data as if it was from a real database. Something like
this. However, as things stand right now, I have a separate C# class in my model that uses the model as follows:
Model:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Quotes_Sample.Models
{
...
Go to the complete details ...