public ActionResult BreedIndex(int mid, int fid) { try { using (ContextBLL ctx = new ContextBLL()) { var m = ctx.GetMorphsRelatedToGecko(0, 100, mid); var f = ctx.GetMorphsRelatedToGecko(0, 100, fid); var x = ctx.BreedGekcos(m, f); return(View(x)); } } catch (Exception ex) { return(View("Error", ex)); } }