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

            return(oCustomer);
        }