Esempio n. 1
0
        public IHttpActionResult Create([FromBody] XboxCreateModel xboxToCreate)
        {
            _xboxService = new XboxService();

            _xboxService.CreateXboxGame(xboxToCreate);

            return(Ok($"{xboxToCreate.Name} has been successfully created!"));
        }
        public IHttpActionResult Create([FromBody] XboxCreateModel xboxToCreate)
        {
            _xboxService = new XboxService();

            _xboxService.CreateXboxGame(xboxToCreate);

            return(Ok());
        }