コード例 #1
0
        public ActionResult DeleteConfirmed(long id)
        {
            MaterialsPost materials = _materialsService.GetPost(id);

            materials.UserName = User.Identity.Name;
            _materialsService.Delete(materials);
            return(RedirectToAction("Index"));
        }