public ActionResult Delete(int id) { leagueService.Delete(id); leagueService.Commit(); SuccessMessage(FormMessages.DeleteSuccess); return(RedirectToAction("Index")); }
public async Task <IActionResult> Delete(Guid id) { IActionResult result = await Execute(_log, async() => await _leagueService.Delete(id)); return(result); }