public ActionResult List() { //using (ObjectContext context = new ObjectContext()) //{ // //var query = context.CreateQuery<gc_CharityRequirements>().SelectMany(); //} // var charityRepository = new MockCharityRepository(); var charityRepository = new CharityRepository(); List<CharityRequirement> charities = charityRepository.GetAllCharities().ToList(); return View(charities); }
public ActionResult Review() { Models.CharityRepository repo = new CharityRepository(); return View(repo.GetAllCharities()); }