namespace MvcEcoProject1.Controllers
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Eco.ObjectRepresentation;
public class HomeController : EcoController
{
#region constructors
//Note the two constructors, one with param is for unit testing
//Note the inheritance on this class too
public HomeController()
: base()
{
} public HomeController(IEcoServiceProvider testServiceProvider)
: base(testServiceProvider)
{
}
#endregion
public ActionResult Index()
{
string ocl = "Calss1.Allinstances->first";
ViewData["Title"] = "Home Page";
ViewData["Message"] = "Welcome to ASP.NET MVC!";
Class1 ob = this.ServiceProvider.GetEcoService<IOclService>.Excute(ocl);
ViewData["yyy"] = Class1.Hello; // "hello,world!";
return View();
}
public ActionResult About()
{
ViewData["Title"] = "About Page";
return View();
}
}
}
it not work certainly,can anyone give me a sample code.