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