public static void Main()
Console.WriteLine("Hello World");
ITransRepository transRepository = new MongoDbImplementation();
transRepository.AddWalletTrans(new WalletTransPOCO());
public interface ITransRepository
bool AddWalletTrans(WalletTransPOCO walletTransObj);
bool UpdateWalletTrans(WalletTransPOCO walletTransObj);
bool GetWalletTransDetails(WalletTransPOCO walletTransObj);
bool DeleteWalletTransDetails(string transId);
public class MongoDbImplementation:ITransRepository
public bool AddWalletTrans(WalletTransPOCO walletTransObj)
public bool UpdateWalletTrans(WalletTransPOCO walletTransObj)
public bool GetWalletTransDetails(WalletTransPOCO walletTransObj)
public bool DeleteWalletTransDetails(string transId)
public class NewDbImplementation:ITransRepository
public bool AddWalletTrans(WalletTransPOCO walletTransObj)
public bool UpdateWalletTrans(WalletTransPOCO walletTransObj)
public bool GetWalletTransDetails(WalletTransPOCO walletTransObj)
public bool DeleteWalletTransDetails(string transId)
public class WalletTransPOCO
public String TransId{get;set;}
public String MemberId{get;set;}
public String etc{get;set;}
public WalletCash WalletCash{get;set;}
public long PaymentId { get; set; }
public short Sequence { get; set; }
public string PayType { get; set; }
public long Amount { get; set; }