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

            return(result);
        }