public Model.VO.StoreVO GetStoreByID(int storeID) { StoreData storeData = new StoreData(); StoreVO storeVO = new StoreVO(); StorePO storePO = storeData.GetStoreByID(storeID); storeVO = Mapper.Map<StorePO, StoreVO>(storePO); return storeVO; }
//public StoreVO GetModel(int id) //{ // StoreData storedata = new StoreData(); // //StoreData // return Mapper.Map<StorePO, StoreVO>(storedata.GetModel(id)); //} public List<Model.VO.StoreVO> GetAllStores() { StoreData storeData = new StoreData(); List<StoreVO> storeVOList = new List<StoreVO>(); DataSet ds = storeData.GetAllStores(); List<StorePO> storePOList = ds.GetEntity<List<StorePO>>(); storePOList.ForEach(i => { storeVOList.Add(Mapper.Map<StorePO, StoreVO>(i)); }); return storeVOList; }
public void EditStore(Model.VO.StoreVO store) { StoreData storeData = new StoreData(); storeData.EditStore(Mapper.Map<StoreVO, StorePO>(store)); }
public void DelStore(int id) { StoreData storeData = new StoreData(); storeData.DelStore(id); }