public int DeleteDataBL(StoreInventoryBL oStoreInventoryBL) { StoreDataAccessLayer oStoreDataAccessLayer = new StoreDataAccessLayer(); StoreInventoryDL oStoreInventoryDL = new StoreInventoryDL(); oStoreInventoryDL.Id = oStoreInventoryBL.Id; int rowCount = oStoreDataAccessLayer.DeleteDataDL(oStoreInventoryDL); return(rowCount); }
/// <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); }
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); }
public StoreController() { storeDAL = new StoreDataAccessLayer(); }