Exemplo n.º 1
0
        // GET: Item
        public ActionResult Index(string ItemName = "", string ItemCode = "", int CategoryName = 0)
        {
            var ses   = sesrepo.GetSessionById((User as CustomPrincipal).UserId);
            int orgid = ses.OrganizationId;

            ViewBag.CategoryId = new SelectList(ddl.GetCategoryList(orgid), "Id", "Name");
            //ViewBag.ItemName = new SelectList(ddl.GetItemList(orgid), "Id", "Name", ItemName);
            //ViewBag.ItemCode = new SelectList(ddl.GetCategoryList(orgid), "Id", "Name", Category);
            return(View(db.GetItemList(orgid, ItemName, ItemCode, CategoryName)));
        }