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