public static PhysicalCountInfo GetPhysicalCountInformation(bool isPostBack) { if (!isPostBack) { PageDataTransfer transferedData = new PageDataTransfer(HttpContext.Current.Request.Path); Guid physicalCountId = (Guid)transferedData.GetTransferedData("PhysicalCountId"); IInventoryServices invertoryServices = InventoryServices.GetInventoryService(); PhysicalCountInfo physicalCountInformation = invertoryServices.OpenPhysicalCount(physicalCountId); HttpContext.Current.Session["Physical-Count-Information"] = physicalCountInformation; return(physicalCountInformation); } else { return((PhysicalCountInfo)HttpContext.Current.Session["Physical-Count-Information"]); } }