public async Task <IActionResult> ScheduleBillPay() { //populates view bags with accounts for dropboxes ViewBag.Accounts = await this.GetAccountsForViewBag(); ViewBag.Payees = await _payeeRepo.GetAll(); //creates a new form model and gets the current time with three minutes added BillPayFormModel formModel = new BillPayFormModel(); formModel.Date = DateTime.ParseExact(DateTime.Now.AddMinutes(3).ToString("dd/MM/yyyy HH:mm"), "dd/MM/yyyy HH:mm", CultureInfo.InvariantCulture); return(View(formModel)); }
public IEnumerable <Payee> Get() { return(_repo.GetAll()); }