public ActionResult DeleteConfirmed(int id) { selfevaluation selfevaluation = es.GetById(id); es.Delete(selfevaluation); es.Commit(); return(RedirectToAction("Index")); }
// GET: Evaluation/Delete/5 public async Task <ActionResult> Delete(long id, long id2) { await _evaluationService.Delete(id, id2); return(RedirectToAction(nameof(Index))); }