Ejemplo n.º 1
0
        public HttpResponseMessage RemoteDispatch(Externalv2RemoteDispatchRequestModel egrm)
        {
            var or = _systemService.AddRemoteDispatch(egrm.Api_Account, egrm.TimeStamp, egrm.Sign, egrm.Token, egrm.SN, egrm.ActivePower, egrm.ReactivePower, egrm.SOC, egrm.Status, egrm.ControlMode);

            var respContent = or.ToExternaRemoteDispatchResponseModel();

            return(Request.CreateResponse(HttpStatusCode.OK, respContent));
        }