public async Task <IActionResult> Delete(int Id) { try { await _teamServices.DeleteTeamAsync(Id); return(RedirectToAction("Index")); } catch (GlobalException e) { return(BadRequest(e.Message)); } }
public async Task <IActionResult> Delete(int Id) { try { await _teamServices.DeleteTeamAsync(Id); return(RedirectToAction("Index")); } catch (GlobalException e) { return(BadRequest(e.Message)); } }