public IHttpActionResult PostCalcRegressionInputs(CalcRegressionInputs calcRegressionInputs)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            CalcConfiguration calcConfiguration = db.CalcConfiguration.Find(calcRegressionInputs.CalcID);
            calcRegressionInputs.Scheme = calcConfiguration.Scheme;
            calcRegressionInputs.Type = calcConfiguration.Name;

            db.CalcRegressionInputs.Add(calcRegressionInputs);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = calcRegressionInputs.ID }, calcRegressionInputs);
        }
        public IHttpActionResult PutCalcRegressionInputs(int id, CalcRegressionInputs calcRegressionInputs)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != calcRegressionInputs.ID)
            {
                return BadRequest();
            }

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }