// GET: Holding/Details/5
        public async Task <ActionResult> Details(string id)
        {
            var holding = await HoldingLib.GetHolding(id.ToString());

            if (holding == null)
            {
                var errorMsg = string.Format("Holding {0} not found.", id);
                throw new HttpException(404, errorMsg);
            }
            return(View(holding));
        }
        // GET: Holding/Edit/5
        public async Task <ActionResult> Edit(string id)
        {
            var employeesList = await EmployeerLib.GetAllEmployees();

            var fundsList = await FundLib.GetAllFunds();

            var holding = await HoldingLib.GetHolding(id.ToString());

            if (holding == null)
            {
                var errorMsg = string.Format("Holding {0} not found.", id);
                throw new HttpException(404, errorMsg);
            }
            ViewBag.EmployeeId = new SelectList(employeesList, "Id", "FullName", holding.EmployeeId);
            ViewBag.FundId     = new SelectList(fundsList, "Id", "Name", holding.FundId);

            return(View(holding));
        }