// 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)); }
// GET: /OrganizationBranch/ public ActionResult Index() { var organizationbranches = _organizationBranchManager.GetAll(); return(View(organizationbranches.ToList())); }
public List <OrganizationBranch> GetAll() { var OrgBranch = _branchManager.GetAll(); return(OrgBranch.ToList()); }