Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
15 views5 pages

PRN222 Assignment02

The document outlines an assignment to build a News Management System (NMS) using ASP.NET Core Razor Pages and SignalR, aimed at helping educational institutions manage and publish news effectively. Key objectives include implementing CRUD operations, applying a 3-Layer architecture, and utilizing design patterns such as Repository and Singleton. The system will feature user roles with specific permissions for managing accounts, news articles, and categories, while ensuring real-time communication and data validation.

Uploaded by

vhnguyenx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

PRN222 Assignment02

The document outlines an assignment to build a News Management System (NMS) using ASP.NET Core Razor Pages and SignalR, aimed at helping educational institutions manage and publish news effectively. Key objectives include implementing CRUD operations, applying a 3-Layer architecture, and utilizing design patterns such as Repository and Singleton. The system will feature user roles with specific permissions for managing accounts, news articles, and categories, while ensuring real-time communication and data validation.

Uploaded by

vhnguyenx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

PRN222 Assignment 02

Building a News Management website with ASP.NET


Core Razor Pages and SingalR

1. Introduction
A News Management System (NMS) is a software application that helps universities and
educational institutions to efficiently manage, organize, and publish news and content to their
website and other channels. The NMS typically includes features such as content creation,
approval workflow, scheduling, publishing, and analytics. This can help universities to arrange
appropriately their news operations, improve communication with students and the wider
community, and better engage with their target audience.

Imagine you're a developer of a News Management System named


FUNewsManagementSystem. To implement a part of this system your tasks include:

- Manage account information.


- Manage news article.

The application has a default account (admin account) whose email is


[email protected]” and password is “@@abc123@@” that stored in
the appsettings.json.

1|Page
2. Assignment Objectives
In this assignment, you will:

 Use the Visual Studio.NET to create ASP.NET Core Razor Pages with SignalR and Class
Library (.dll) projects.
 Perform CRUD actions using Entity Framework Core.
 Use LINQ to query and sort data.
 Apply 3-Layers architecture to develop the website.
 Apply Repository pattern and Singleton pattern in a project.
 Add CRUD and searching actions to the website.
 Apply to validate data type for all fields.

2|Page
3. Database Design

- A news article will belong to only one news category (Category).


- An account with staff’s role can create many news articles in this system. (Staff role = 1,
Lecturer role = 2; Admin role will get from appsettings.json file).
- A news article will have many tags and one tag will belong to zero or one news article
(News status = active(1)/inactive(0)).
- Category status = active(1)/inactive(0).

3|Page
4. Main Functions
▪ Do not need authentication function to view the news articles in this system.
▪ Member (Admin/Staff) authentication by Email and Password.
▪ If user is a “Lecturer”, this role is allowed to view the news article (news status must be
active) in this system.
▪ If the user is an “Admin”, this admin role is allowed to:
o Manage account information.
o Create a report statistic by the period from StartDate to Attended (it depends to
the news’ created date), and sort data in descending order.
▪ If user is a “Staff”, this staff role is allowed to:
o Manage category information. (The delete action will delete an item in the case
this item is not belong to any news articles. If the item is already stored in a
news article cannot delete.)

o Manage news article (includes tags). Manage (CRUD) news must be applied
with real-time communication.
o Manage his/her the profile.
o View news history created by him/her.
▪ Note that: News article Management, Account Management, and Category Management:
Read, Create, Update, Delete and Search actions. Creating and Updating actions must be
performed by popup dialog. Delete action always combines with confirmation.

5. Note
 You must use Visual Studio 2019 or above (.NET5/.NET6/.NET7), MSSQL Server
2012 or above for your development tools.
 To do your program, you must use ASP.NET Core Razor Pages with SignalR. Note
that you are not allow to connect direct to database from Razor pages, every database
connection must be used through Repository and Data Access Objects. The database
connection string must get from appsettings.json file.

4|Page
 Create Solution in Visual Studio named StudentName_ClassCode_A02.sln. Inside your
Solution, the Project Razor Pages must be named: StudentNameRazorPages.
 Create your MS SQL database named FUNewsManagement by running code in script
FUNewsManagement.sql.
 Set the default user interface for your project as Login page/window.

5|Page

You might also like