public IHttpActionResult PutInfringement(string id, Infringement infringement)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != infringement.BreachNo)
            {
                return BadRequest();
            }

            try
            {
                rep.Update(id, infringement);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!rep.InfringementExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostInfringement(Infringement infringement)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (infringement.BreachDate == DateTime.MinValue)
                infringement.BreachDate = DateTime.Now;

            rep.Add(infringement);

            return CreatedAtRoute("DefaultApi", new { id = infringement.BreachNo }, infringement);
        }