Ejemplo n.º 1
0
        public void TestDeleteParam()
        {
            MeterAlarmSetService service = new MeterAlarmSetService();

            MeterAlarmSet setInfo = new MeterAlarmSet();

            setInfo.BuildID = "000001G001";
            setInfo.MeterID = "000001G0010001";
            setInfo.ParamID = "31000000000700";


            var viewModel = service.DeleteParam(setInfo);

            Console.WriteLine(UtilTest.GetJson(viewModel));
        }
Ejemplo n.º 2
0
        public object DeleteAlarmInfo([FromBody] JObject obj)
        {
            try
            {
                MeterAlarmSet setInfo = new MeterAlarmSet();

                setInfo.BuildID = obj["BuildID"].ToString();
                setInfo.MeterID = obj["MeterID"].ToString();
                setInfo.ParamID = obj["ParamID"].ToString();

                return(service.DeleteParam(setInfo));
            }
            catch (Exception e)
            {
                return(e.Message);
            }
        }