I got this error when I view it.
The call is ambiguous between the following methods or properties:
‘System.Web.Mvc.Controller.View(string)’ and
‘System.Web.Mvc.Controller.View(System.Web.Mvc.IView)’
Here’s my controller
[HttpGet]
public ActionResult Selling() {
_table = new QuestionnaireSelling();
var model = _table.Get(UserID: _userId);
return View(model);
}
This is my model class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Massive;
namespace ChurchRealty.Models
{
public class QuestionnaireSelling : DynamicModel
{
public QuestionnaireSelling() : base("ChurchRealty", "QuestionnaireSelling", "ID") { }
}
}
This is my view
http://dl.dropbox.com/u/3037520/Selling.cshtml
I used Massive by rob conery
There is not much info given in the question. I have the following on my view:
Just make sure that when you return the model that it is of the same type, here where you have:
In my case it would be something like:
If you can give some more detailed code in your question then I can update my answer.