private static PaymentStatus DBMapping(DBPaymentStatus dbItem) { if (dbItem == null) return null; PaymentStatus item = new PaymentStatus(); item.PaymentStatusID = dbItem.PaymentStatusID; item.Name = dbItem.Name; return item; }