public void TestAlarmDepartmentComletionRateByUserName()
        {
            AlarmDepartmentCompletionRateService service = new AlarmDepartmentCompletionRateService();

            AlarmDepartmentCompletionRateViewModel model = service.GetViewModelByUserName("admin");

            Console.WriteLine(UtilTest.GetJson(model));
        }
 public object Get()
 {
     try
     {
         string userName = User.Identity.Name;
         return(service.GetViewModelByUserName(userName));
     }
     catch (Exception e)
     {
         return(e.Message);
     }
 }