Esempio n. 1
0
        //------------------------to set the data for the drop downn----------------
        public void AllDropDown()
        {
            //List<tb_Branch> BranchList = db.tb_Branch.ToList();
            var Branches = Cont.BranchList();

            ViewBag.VBranchLists = new SelectList(Branches, "BranchId", "Branchname");

            List <tb_Status> StatusList = db.tb_Status.ToList();

            ViewBag.VStatusLists = new SelectList(StatusList, "StatusId", "Status");
        }