@RequestMapping(value = "/pay", method = RequestMethod.POST)
public String pay(Long id, Long origin, Double amount, Date operationDate, ModelMap modelMap) {
UserDetails user = UserDetails.findCurrentUser();
Bill bill = Bill.findBill(id);
if (bill.belongsTo(user)) {
accountService.payBill(user, bill, origin, amount, operationDate);
}
return dashboard.index(modelMap);
}