Beispiel #1
0
        public EncStatisticModel AddEncStatistic(EncStatisticModel model)
        {
            var request = new RestRequest("/api/CameraEvent/EncStatistic", Method.POST);

            request.AddJsonBody(model);

            var response = RestClient.Execute(request);

            if (response.StatusCode != HttpStatusCode.OK)
            {
                throw CreateException(response);
            }

            return(JsonConvert.DeserializeObject <EncStatisticModel>(response.Content));
        }
Beispiel #2
0
 public IHttpActionResult PostEncStatistic([FromBody] EncStatisticModel model)
 {
     return(Ok());
 }