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

            return(result);
        }