// GET: Dogs public ActionResult Index() { try { List <DogBLL> items = null; using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL()) { items = ctx.DogsGetAll(0, 25); } return(View(items)); } catch (Exception ex) { Logger.Logger.Log(ex); return(View("Error")); } }