public MainVM GetMainInfo(string centerid) { var result = new MainVM { TestRegisCount = repoOnSite.GetTestRegisCount(centerid), ActiveThruDateTime = repoOnSite.GetActive(centerid).ActiveThruDateTime, IsExamEnough = repoOnSite.CheckExamEnough(centerid), }; return(result); }