コード例 #1
0
        public ActionResult Delete(Int64 munitionID, Int64 videoID)
        {
            ActionResult oResponse = RedirectToAction("Index", "Videos", new { munitionID });

            try
            {
                dataAccess.DeleteVideo(videoID);
                TempData["Message"] = $"Video has been deleted.";
            }
            catch (Exception ex)
            {
                TempData["Message"] = "Munition could not be deleted at this time.";
            }
            return(oResponse);
        }