// GET: Bugs public ActionResult Index(int?projectid) { try { var bugs = bugmngr.BugsByProjectId(projectid); List <ViewBugs> vbs = new List <ViewBugs>(); foreach (var b in bugs) { ViewBugs vb = new ViewBugs(); vb.ImportFromModel(b); vbs.Add(vb); } return(View(vbs)); } catch (Exception) { throw; } }