public IHttpActionResult PutBadDateReport(int id, BadDateReport badDateReport)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != badDateReport.BadDateReportId)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostBadDateReport(BadDateReport badDateReport)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.BadDateReports.Add(badDateReport);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = badDateReport.BadDateReportId }, badDateReport);
        }