Example #1
0
        // GET: Breed
        public ActionResult Index()
        {
            try
            {
                List <BreedBLL> items = null;
                using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
                {
                    items = ctx.BreedGetAll(0, 25);
                }

                return(View(items));
            }catch (Exception ex)
            {
                Logger.Logger.Log(ex);
                return(View("Error"));
            }
        }