public async Task<IHttpActionResult> PostBugReport(BugReport bugReport)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }
            _repository.Insert(bugReport);

            await _repository.Save();

            return CreatedAtRoute("DefaultApi", new { id = bugReport.Id }, bugReport);
        }
        public async Task<IHttpActionResult> PutBugReport(int id, BugReport bugReport)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

            _repository.Update(bugReport);

            await _repository.Save();

            return Ok(bugReport);
        }