I got a piece of code like follows
private Models.Quotes QuoteList;
public SalesOfficeController(Models.Quotes.QuoteType qt )
{
QuoteList = new Models.Quotes(qt);
}
I wanted to pass dynamic enum value(QuoteType) to this constructor. How can I do this. Error I'm getting here is "No parameterless constructor defined for this object" since I haven't implemented DI. Is there any other straight forward method to achieve this without using DI.