Pay Button page foundation

This commit is contained in:
rockstardev
2018-08-10 20:26:51 +02:00
parent 86ca081030
commit e698d90e3c
6 changed files with 85 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ namespace BTCPayServer.Controllers
using (var ctx = _ContextFactory.CreateContext())
{
return await ctx.Apps
.Where(us => us.Id == appId &&
.Where(us => us.Id == appId &&
us.AppType == appType.ToString())
.FirstOrDefaultAsync();
}
@@ -281,5 +281,12 @@ namespace BTCPayServer.Controllers
await ctx.SaveChangesAsync();
}
}
[Route("{appId}/paybutton")]
public async Task<IActionResult> PayButton(string appId)
{
var model = new PayButtonViewModel();
return View(model);
}
}
}