public IHttpActionResult PostScoutData(ScoutDataCollector scoutDataCollector)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            int apiKeyId = db.ApiKey.Where(a => a.apiKeyValue == scoutDataCollector.apiKey).First().apiKeyID;

            ScoutData scoutData = scoutDataCollector.ConvertToDb(apiKeyId);

            db.ScoutData.Add(scoutData);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = scoutData.scoutDataID }, scoutDataCollector));
        }
 public bool SubmitScoutData(ScoutDataCollector data)
 {
     SubmitDataCollectorToUrl(data, apiRoot + scoutSubmitPath);
     return(true);
 }