// GET: OddsHandler/Edit/5 public ActionResult Edit(int id) { var odd = _oddsLogic.GetOdds(new[] { id }); if (odd != null) { ; } return(View(odd.FirstOrDefault())); }
public async Task SendUpdatedOdds(List <OddsData> data) { _oddsLogic.EditOdds(data); var result = _oddsLogic.GetOdds(data.Select(x => x.Id).ToArray()); await Clients.All.SendAsync(actionUpdateOdds, result); }