public IHttpActionResult SubmitKnifeCapture(string machine_name, int deviceId, int knife_pos, int knife_type, int knife_picked, int local_value) { KC_Resp Resp = new KC_Resp(_context, deviceId, machine_name, knife_pos, knife_type, knife_picked, local_value); //return Ok(Resp); return(Json(Resp)); }
public IHttpActionResult KnifeCaptureGetInitials(int post_id, string machines) { KC_Resp Resp = new KC_Resp(); if (initial_post_id != post_id) { initial_post_id = post_id; Resp = new KC_Resp(_context, machines); } return(Json(Resp)); }
public IHttpActionResult SubmitKnifeCapture([FromBody] CaptureProps CaptureProps) { KC_Resp Resp = new KC_Resp(); // ignord the same post data if (capture_post_id != CaptureProps.PostId) { capture_post_id = CaptureProps.PostId; Resp = new KC_Resp(_context, CaptureProps); } return(Json(Resp)); }