Пример #1
0
        public void TestSetConfirm_AllMeterAlarm()
        {
            MeterAlarmService service = new MeterAlarmService();

            var viewModel = service.SetConfirmAllMeterAlarm("Admin", "test by admin all");

            Console.WriteLine(UtilTest.GetJson(viewModel));
        }
Пример #2
0
        public object SetConfirmAlarm(string describe = "")
        {
            try
            {
                string userName = User.Identity.Name;

                return(service.SetConfirmAllMeterAlarm(userName, describe));
            }
            catch (Exception e)
            {
                return(e.Message);
            }
        }