public ActionResult ViewStoreProduct(int nStoreID) { GlobalSession.SessionIsAlive(Session, Response); _oStoreProduct = new StoreProduct(); ContractorService oContractorService = new ContractorService(); List <Contractor> oContractors = new List <Contractor>(); oContractors = oContractorService.GetsByContractorType(EnumContractorType.Supplier, (int)Session[GlobalSession.UserID]); if (nStoreID > 0) { _oStore = _oStoreService.Get(nStoreID, (int)Session[GlobalSession.UserID]); _oStoreProducts = _oStoreProductService.GetsByStoreID(_oStore.StoreID, (int)Session[GlobalSession.UserID]); } ViewBag.ProductTypes = _oProductTypeService.Gets(1, (int)Session[GlobalSession.UserID]); ViewBag.StoreProducts = _oStoreProducts; ViewBag.Contractors = oContractors; return(View(_oStore)); }
public ActionResult ViewProductCategory(int nProductCategoryID) { GlobalSession.SessionIsAlive(Session, Response); ProductCategory _oProductCategory = new ProductCategory(); if (nProductCategoryID > 0) { _oProductCategory = _oProductCategoryService.Get(nProductCategoryID, (int)Session[GlobalSession.UserID]); } ViewBag.ProductTypes = _oProductTypeService.Gets(1, (int)Session[GlobalSession.UserID]); return(View(_oProductCategory)); }
public ActionResult ViewProductTypes(int nBUID, int menuid) { GlobalSession.SessionIsAlive(Session, Response); _oProductTypes = _oProductTypeService.Gets(nBUID, (int)Session[GlobalSession.UserID]); return(View(_oProductTypes)); }