public void TestSetConfirm_MeterAlarm() { MeterAlarmService service = new MeterAlarmService(); string ids = "1979"; var viewModel = service.SetConfirmMeterAlarm("Admin", "test by admin", ids); Console.WriteLine(UtilTest.GetJson(viewModel)); }
public object SetConfirmAlarm([FromBody] JObject obj) { try { string userName = User.Identity.Name; string ids = obj["ids"].ToString(); string describe = obj["describe"].ToString(); return(service.SetConfirmMeterAlarm(userName, describe, ids)); } catch (Exception e) { return(e.Message); } }