diff --git a/PCUT/PCUT.Entities/Pagination.cs b/PCUT/PCUT.Entities/ApiResponse/Pagination.cs
similarity index 86%
rename from PCUT/PCUT.Entities/Pagination.cs
rename to PCUT/PCUT.Entities/ApiResponse/Pagination.cs
index b4b3cf3..0c07693 100644
--- a/PCUT/PCUT.Entities/Pagination.cs
+++ b/PCUT/PCUT.Entities/ApiResponse/Pagination.cs
@@ -3,9 +3,9 @@ using System;
using System.Collections.Generic;
using System.Text;
-namespace PCUT.Entities
+namespace PCUT.Entities.ApiResponse
{
- public class Pagination
+ public class Pagination
{
[JsonProperty("page")]
public int Page { get; set; }
diff --git a/PCUT/PCUT.Entities/Banner.cs b/PCUT/PCUT.Entities/Banner.cs
new file mode 100644
index 0000000..1a8afb1
--- /dev/null
+++ b/PCUT/PCUT.Entities/Banner.cs
@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace PCUT.Entities
+{
+ public class Banner
+ {
+ public string Id { get; set; }
+ public string Name { get; set; }
+ public string Content { get; set; }
+ }
+}
diff --git a/PCUT/PCUT/PCUT.csproj b/PCUT/PCUT/PCUT.csproj
index 65efcbb..b42d793 100644
--- a/PCUT/PCUT/PCUT.csproj
+++ b/PCUT/PCUT/PCUT.csproj
@@ -186,6 +186,9 @@
AppOutdatedDialog.xaml
+
+ BannerViewPage.xaml
+
CategoryUpsertDialog.xaml
@@ -253,6 +256,7 @@
UserListPage.xaml
+
@@ -363,6 +367,10 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
diff --git a/PCUT/PCUT/Pages/BannerManagement/BannerViewPage.xaml b/PCUT/PCUT/Pages/BannerManagement/BannerViewPage.xaml
new file mode 100644
index 0000000..f2c139f
--- /dev/null
+++ b/PCUT/PCUT/Pages/BannerManagement/BannerViewPage.xaml
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/PCUT/PCUT/Pages/BannerManagement/BannerViewPage.xaml.cs b/PCUT/PCUT/Pages/BannerManagement/BannerViewPage.xaml.cs
new file mode 100644
index 0000000..34545c0
--- /dev/null
+++ b/PCUT/PCUT/Pages/BannerManagement/BannerViewPage.xaml.cs
@@ -0,0 +1,83 @@
+using PCUT.ViewModels;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Runtime.InteropServices.WindowsRuntime;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=234238
+
+namespace PCUT.Pages.BannerManagement
+{
+ ///
+ /// An empty page that can be used on its own or navigated to within a Frame.
+ ///
+ public sealed partial class BannerPage : Page
+ {
+ public BannerViewModel ViewModels { get; set; }
+
+ public BannerPage()
+ {
+ this.InitializeComponent();
+ }
+
+ protected override void OnNavigatedTo(NavigationEventArgs e)
+ {
+ base.OnNavigatedTo(e);
+ }
+
+ private void Page_Loaded(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ protected override void OnNavigatedFrom(NavigationEventArgs e)
+ {
+ base.OnNavigatedFrom(e);
+ }
+
+ private void AddBanner_Click(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ private void EditBanner_Click(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ private void DeleteBanner_Click(object sender, RoutedEventArgs e)
+ {
+
+ }
+
+ private void btnFirst_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModels.Pagination.Page = 1;
+ }
+
+ private void btnLast_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModels.Pagination.Page = ViewModels.Pagination.TotalPage;
+ }
+
+ private void btnPrevious_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModels.Pagination.Page--;
+ }
+
+ private void btnNext_Click(object sender, RoutedEventArgs e)
+ {
+ ViewModels.Pagination.Page++;
+ }
+ }
+}
diff --git a/PCUT/PCUT/ViewModels/BannerViewModel.cs b/PCUT/PCUT/ViewModels/BannerViewModel.cs
new file mode 100644
index 0000000..b833bbc
--- /dev/null
+++ b/PCUT/PCUT/ViewModels/BannerViewModel.cs
@@ -0,0 +1,21 @@
+using PCUT.Entities;
+using PCUT.Models;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace PCUT.ViewModels
+{
+ public class BannerViewModel : NotificationBase
+ {
+ public PaginationViewModel Pagination { get; } = new PaginationViewModel(withSearch: true);
+ public SelectableCollection FilteredBanners { get; }
+
+ public class BannerModel : Banner
+ {
+ public string DisplayId { get; set; }
+ }
+ }
+}