public void UpdateSpecielOfferPrice0()
        {
            var spec = new SpecialOffers()
            {
                Id               = 1,
                Price            = 0,
                SpecialOfferName = "banan"
            };

            Exception ex = Assert.ThrowsException <ArgumentException>(() =>
                                                                      SpecielOffersService.UpdateSpecialOffer(spec));

            Assert.AreEqual("Price need to be higher than 0", ex.Message);
        }
        public ActionResult <SpecialOffers> Put(int id, [FromBody] SpecialOffers spcl)
        {
            try
            {
                var entity = _spclService.UpdateSpecialOffer(spcl);
                entity.SpecialOfferName = spcl.SpecialOfferName;
                return(Ok(entity));
            }

            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }