public static int GetPayableTypeID(PayableType payableType) { try { return(PayableTypeBindings.Where(c => c.Key == payableType).FirstOrDefault().Value); } catch { throw new Exception("Corresponding int not found for PayableType {0}.".FormatWith(payableType.ToString())); } }
public static int GetPayableTypeID(PayableType payableType) { try { return PayableTypeBindings.Where(c => c.Key == payableType).FirstOrDefault().Value; } catch { throw new Exception("Corresponding int not found for PayableType {0}.".FormatWith(payableType.ToString())); } }