public void TestGetRegionReportViewModelByUser() { DateTime today = DateTime.Now; RegionReportViewModel reportViewModel = service.GetViewModelByUserName("admin"); Console.WriteLine(UtilTest.GetJson(reportViewModel)); }
public object Get() { try { string userName = User.Identity.Name; return(service.GetViewModelByUserName(userName)); } catch (Exception e) { return(e.Message); } }