public async Task <ActionResult> Delete(int id, IFormCollection collection) { try { await _missionService.DeleteAsync(HttpContext.Session, id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public async Task <Result> Delete(int id) { await _missionService.DeleteAsync(id); return(Result.Success()); }