When I try to load my repository into my view like this
@model BlueRateITRepositories.Repository.FilmRepository;
@{
ViewBag.Title = "Films";
}
<h2>Films</h2>
FilmRepository FilmRepository = new FilmRepository();
// GET: Film
public ActionResult Films()
{
return View(FilmRepository);
}
Remove the semicolon at the end of your model declaration.And also, as suggested by @shyju , try keeping the object name in a different casing than the class name.
Model declaration should be-
<namespace>.ClassName
Let me know if it works.