Exemplo n.º 1
0
        public int DeleteDataBL(StoreInventoryBL oStoreInventoryBL)
        {
            StoreDataAccessLayer oStoreDataAccessLayer = new StoreDataAccessLayer();
            StoreInventoryDL     oStoreInventoryDL     = new StoreInventoryDL();

            oStoreInventoryDL.Id = oStoreInventoryBL.Id;

            int rowCount = oStoreDataAccessLayer.DeleteDataDL(oStoreInventoryDL);

            return(rowCount);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Method to Insert Data
        /// </summary>
        /// <param name="oStoreInventoryBL"></param>
        /// <returns></returns>

        public int InsertDataDL(StoreInventoryBL oStoreInventoryBL)
        {
            StoreDataAccessLayer oStoreDataAccessLayer = new StoreDataAccessLayer();
            StoreInventoryDL     oStoreInventoryDL     = new StoreInventoryDL();

            oStoreInventoryDL.ContentName     = oStoreInventoryBL.ContentName;
            oStoreInventoryDL.ContentQuantity = oStoreInventoryBL.ContentQuantity;

            int rowCount = oStoreDataAccessLayer.InsertDataDL(oStoreInventoryDL);

            return(rowCount);
        }
Exemplo n.º 3
0
        private bool checkStore(int?storeId)
        {
            if (null == storeId)
            {
                return(false);
            }
            int id = Convert.ToInt32(storeId);
            StoreDataAccessLayer storeDAL = new StoreDataAccessLayer();

            if (null == storeDAL.GetStoreById(id))
            {
                return(false);
            }
            return(true);
        }
Exemplo n.º 4
0
 public StoreController()
 {
     storeDAL = new StoreDataAccessLayer();
 }