コード例 #1
0
        // GET: /AssetLocation/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AssetLocation assetlocation = _assetLocationManager.GetById((int)id);

            if (assetlocation == null)
            {
                return(HttpNotFound());
            }
            var organizationBranchList = _organizationBranchManager.GetAll();

            ViewBag.OrganizationBranchID = new SelectList(organizationBranchList, "OrganizationBranchID", "OrganizationBranchName");
            return(View(assetlocation));
        }
コード例 #2
0
        // GET: /OrganizationBranch/
        public ActionResult Index()
        {
            var organizationbranches = _organizationBranchManager.GetAll();

            return(View(organizationbranches.ToList()));
        }
コード例 #3
0
        public List <OrganizationBranch> GetAll()
        {
            var OrgBranch = _branchManager.GetAll();

            return(OrgBranch.ToList());
        }