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); }
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); }
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); }
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); }
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); }
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); }
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); }