Example #1
0
        // GET: Funds/Edit/5
        public async Task <ActionResult> Edit(string id)
        {
            var fund = await FundLib.GetFund(id.ToString());

            if (fund == null)
            {
                var errorMsg = string.Format("Fund {0} not found.", id);
                throw new HttpException(404, errorMsg);
            }
            return(View(fund));
        }