コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            selfevaluation selfevaluation = es.GetById(id);

            es.Delete(selfevaluation);
            es.Commit();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
        // GET: Evaluation/Delete/5
        public async Task <ActionResult> Delete(long id, long id2)
        {
            await _evaluationService.Delete(id, id2);

            return(RedirectToAction(nameof(Index)));
        }