示例#1
0
 public ActionResult Edit(string id)
 {
     try
     {
         var objectId    = ObjectId.Parse(id);
         var paymentType = repository.Get(objectId);
         return(View(paymentType));
     }
     catch
     {
         return(null);
     }
 }
示例#2
0
 public PaymentType Get(int paymentTypeID)
 {
     return(_repository.Get(paymentTypeID));
 }