public HttpResponseMessage Criteria2Calculate(AqC2Entity c2Entity) { c2Entity.Recalculate(); return Request.CreateResponse(HttpStatusCode.OK, c2Entity); }
private void TestC2() { AqC2Entity e = new AqC2Entity(); e.RecommendationId = 1; e.ProteinContentFeed = 20; e.eFCR = 1.5M; e.FertilizerNInput = 0; e.ProteinContentFish = 18; e.BasicDischargeScore = 1; e.BasicDischargeAdjustment = -0.1M; e.Q22a1 = 0.5M; e.Q22a2 = 0.5M; e.Q22a3 = 0.5M; e.Q22a4 = 0.5M; e.Q22a5 = 0.5M; e.Q22b1 = 0.5M; e.Q22b2 = 0.5M; e.Q22b3 = 0.5M; e.Q22b4 = 0.5M; e.Q22b5 = 0.5M; e.Recalculate(); e.Commit(); AqC2Entity e2 = AqC2Entity.Load(1); }