private void SetViewBags()
        {
            var classItem = _classService.Find(ParentEntityId.ToInteger());

            if (classItem != null)
            {
                ViewBag.ClassName = classItem.Name;
            }
            ViewBag.ClassId = ParentEntityId.ToString();
        }
        private void SetViewBag()
        {
            var productId   = ParentEntityId.ToInteger();
            var productItem = _productService.Find(productId);

            if (productItem != null)
            {
                ViewBag.ProductName = productItem.Name;
            }
            ViewBag.ProductId = ParentEntityId.ToString();
        }
Esempio n. 3
0
        private void SetViewBags()
        {
            var classItem = _dosageService.Find(ParentEntityId.ToInteger());

            if (classItem != null)
            {
                //TODO:Kevin Check
                ViewBag.ClassName = classItem.Name;
            }
            ViewBag.ClassId = ParentEntityId.ToString();
        }