Ejemplo n.º 1
0
        public void DeleteData(ModelNotifiedForShippers modelNotifiedForShippers, out string error)
        {
            ShippersGenericREST ShippersGenericREST = new ShippersGenericREST(wpfConfig);
            DeleteShippersView  deleteShippersView  = new DeleteShippersView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForShippers), modelNotifiedForShippers, typeof(DeleteShippersView), deleteShippersView);
            ShippersGenericREST.Delete(deleteShippersView, out error);
        }
Ejemplo n.º 2
0
        public void AddData(ModelNotifiedForShippers modelNotifiedForShippers, out string error)
        {
            ShippersGenericREST ShippersGenericREST = new ShippersGenericREST(wpfConfig);
            CreateShippersView  createShippersView  = new CreateShippersView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForShippers), modelNotifiedForShippers, typeof(CreateShippersView), createShippersView);
            ShippersGenericREST.Insert(createShippersView, out error);
        }
Ejemplo n.º 3
0
        public void SaveData(ModelNotifiedForShippers modelNotifiedForShippers, out string error)
        {
            ShippersGenericREST ShippersGenericREST = new ShippersGenericREST(wpfConfig);
            UpdateShippersView  updateShippersView  = new UpdateShippersView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForShippers), modelNotifiedForShippers, typeof(UpdateShippersView), updateShippersView);
            ShippersGenericREST.Update(updateShippersView, out error);
        }
Ejemplo n.º 4
0
        public void DeleteData(ModelNotifiedForShippers modelNotifiedForShippers, out string error)
        {
            ShippersBsn  bsn    = new ShippersBsn(wpfConfig);
            ShippersInfo dbItem = new ShippersInfo();

            Cloner.CopyAllTo(typeof(ModelNotifiedForShippers), modelNotifiedForShippers, typeof(ShippersInfo), dbItem);
            bsn.DeleteByID(dbItem, out error);
        }
Ejemplo n.º 5
0
        public ModelNotifiedForShippers GetShippersByID(int ShipperID, out string error)
        {
            error = null;
            ShippersGenericREST      ShippersGenericREST      = new ShippersGenericREST(wpfConfig);
            GetShippersView          getShippersView          = ShippersGenericREST.GetByPK <GetShippersView>(ShipperID, out error)[0];
            ModelNotifiedForShippers modelNotifiedForShippers = new ModelNotifiedForShippers();

            Cloner.CopyAllTo(typeof(GetShippersView), getShippersView, typeof(ModelNotifiedForShippers), modelNotifiedForShippers);
            return(modelNotifiedForShippers);
        }
Ejemplo n.º 6
0
        public void AddData(ModelNotifiedForShippers modelNotifiedForShippers, out string error)
        {
            ShippersBsn  bsn    = new ShippersBsn(wpfConfig);
            ShippersInfo dbItem = new ShippersInfo();

            Cloner.CopyAllTo(typeof(ModelNotifiedForShippers), modelNotifiedForShippers, typeof(ShippersInfo), dbItem);
            bsn.InsertOne(dbItem, out error);
            modelNotifiedForShippers.NewItem = false;
            Cloner.CopyAllTo(typeof(ShippersInfo), dbItem, typeof(ModelNotifiedForShippers), modelNotifiedForShippers);
        }
Ejemplo n.º 7
0
        public ModelNotifiedForShippers GetShippersByID(int ShipperID, out string error)
        {
            error = null;
            ShippersBsn              bsn    = new ShippersBsn(wpfConfig);
            ShippersInfo             dbItem = bsn.GetValueByID(ShipperID);
            ModelNotifiedForShippers item   = new ModelNotifiedForShippers();

            Cloner.CopyAllTo(typeof(ShippersInfo), dbItem, typeof(ModelNotifiedForShippers), item);
            return(item);
        }