public IHttpActionResult PutSalesData(int id, SalesData salesData)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != salesData.Id)
            {
                return BadRequest();
            }

            db.Entry(salesData).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SalesDataExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostSalesData(SalesData salesData)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.SalesData.Add(salesData);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = salesData.Id }, salesData);
        }