// GET: Payments public IActionResult Index(int month, int year) { DateTime startDateTime = Util.MyDate.GetStartDateTime(month, year); DateTime endDateTime = Util.MyDate.GetEndDateTime(month, year); PaymentIndexViewModel viewModel = new PaymentIndexViewModel { Payments = _appService.Get(startDateTime, endDateTime).ToList(), Month = startDateTime.Month, Year = startDateTime.Year }; CreateDateLists(startDateTime.Month, startDateTime.Year); return(View(viewModel)); }
public void InitAndFill() { var all = _appService.Get(); Assert.IsTrue(all.Any()); }