Exemplo n.º 1
0
        // GET: Emp
        public ActionResult Index()
        {
            List <EMPDATA> L = ODOps.GetAll();

            return(View(L));
        }
Exemplo n.º 2
0
 public ActionResult Edit(int?id)
 {
     return(View(ODOps.GetEmp((int)id)));
 }
 //Primitive type DataBinding
 public ActionResult Update(int id)
 {
     return(View("Index", ODOps.GetEmp(id)));
 }