Exemplo n.º 1
0
        public ActionResult Delete(int id, SeriesBO series)
        {
            try
            {
                // TODO: Add delete logic here
                // add delete for Characters and UserCharacters

                using (BLLContext ctx = new BLLContext())
                {
                    ctx.DeleteSeries(id);
                    return(RedirectToAction("Index"));
                }
            }
            catch (Exception ex)
            {
                Logger.Log(ex);
                return(View("Error", ex));
            }
        }