public HttpResponseMessage Post(Params p) { var client = new ServiceReference1.NumericalServiceClient(); client.initNumericalMethod(p.Time, p.Xlen, p.Ylen, TimeStep, p.StepX, p.StepY, 1, 1); result = StreamToArray(client.computeFinalResult(TimeStep), p); return Request.CreateResponse(HttpStatusCode.NoContent); }
public ViewModelSync() { Type = TypeofMethod.PAR; Func = TypeofFunction.A; TimeStep = 100; Time = 1; StepX = StepY = 5; LengthX = LengthY = Math.PI; layer = 1; IsSave = false; IsSlider = false; IsCompute = true; data = new DataBase(); numMethod = new ServiceReference1.NumericalServiceClient(); //numMethod = new EqOscillationPar(); }