public ActionResult Edit(int?Id) { if (Id != null) { tCustomer oCusomter = _CustomerOperation.ReadById(Id); return(View(oCusomter)); } else { return(RedirectToAction("List")); } }
// GET: api/Customer/5 public tCustomer Get(int Id) { tCustomer oCustomer = _CustomerOperation.ReadById(Id); return(oCustomer); }