public ActionResult SaveResult([FromBody] Result result)
        {
            if (SlotMachineService.ValidateResult(result))
            {
                _context.Results.Add(result);
                return(_context.SaveChanges() > 0 ? StatusCode(201) : BadRequest());
            }

            return(BadRequest("Please, provide winning result."));
        }
 public ContentResult GetThirdDraw()
 {
     return(Content(SlotMachineService.ThirdDraw()));
 }
 public ContentResult GetSecondDraw()
 {
     return(Content(SlotMachineService.SecondDraw()));
 }
 public ContentResult GetFirstDraw()
 {
     return(Content(SlotMachineService.FirstDraw()));
 }
 public GameController()
 {
     Player      = new Player();
     SlotMachine = new SlotMachineService();
 }
 public SlotMachineController(SlotMachineService slotMachineService, ConfigurationService configService)
 {
     _slotMachineService = slotMachineService;
     _configService      = configService;
 }