Exemplo n.º 1
0
        public ActionResult Delete(int id, BreedBLL delete)
        {
            try
            {
                // TODO: Add delete logic here
                using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL())
                {
                    ctx.BreedDelete(id);
                }

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