Beispiel #1
0
        public static void Initialize()
        {
            Synchronizer = new Synchronizer();

            string ConsumerKey    = BaseAppUI.Properties.Settings.Default.CKey;
            string ConsumerSecret = BaseAppUI.Properties.Settings.Default.CSecret;
            string storeUrl       = BaseAppUI.Properties.Settings.Default.Url;


            //// from config file
            //string ConsumerKey = "ck_b7a72263b6bf95a345c87951f04810a120826ba9";
            //string ConsumerSecret = "cs_8e982aafabc481195e62c88f4685ea6a5fd99290";
            //string storeUrl = "http://pos.americloud.net/tastynihari/";


            //from config file
            //string ConsumerKey = "ck_4d91f552cad6f97e95cf6e61d74316dbb27ef3d6";
            //string ConsumerSecret = "cs_2ecd7c5e5f0a46958a1af4746f0da36bc82e070a";
            //string storeUrl = "http://www.pitaandkabobz.com";


            WCClient = new WooCommerceClient(storeUrl, ConsumerKey, ConsumerSecret);
            DAL      = new DALUnitOfWork();

            PrepareCompany();

            PrepareGuestUser();
        }
Beispiel #2
0
        public List <PersonPoco> KisileriGetir()
        {
            Func <Person, PersonPoco> personConverter = x => new PersonPoco()
            {
                PersonId = x.PersonId,
            };

            using (DALUnitOfWork uow = new DALUnitOfWork())
            {
                uow.PersonPocos.GetAll();
            }
        }