public ActionResult Create(OddsData data) { try { _oddsLogic.CreateOdds(data); return(RedirectToAction(nameof(Index))); } catch (Exception e) { return(View()); } }
public async Task ActionCreateOdds(OddsData data) { var id = _oddsLogic.CreateOdds(data); var odds = _oddsLogic.GetOdds(new[] { id }); await Clients.All.SendAsync(ActionCreateModifyOdds, odds); }