public List <AgencyTransAnalytic> GetAgencyTransactionsAnalytic(int month, int year) { try { int start = int.Parse($"{year.ToString("D4")}{month.ToString("D2")}01"); DateTime _end = new DateTime(year, month, 1).AddMonths(1).AddDays(-1); int end = int.Parse($"{year.ToString("D4")}{month.ToString("D2")}{_end.Day.ToString("D2")}"); return(TransactionDAO.GetAgencyTransactionsAnalytic(start, end)); } catch (Exception ex) { NLogManager.PublishException(ex); } return(new List <AgencyTransAnalytic>()); }