You are on page 1of 1

Requirements:

An XYZ company comes up with request to build a simple web application to store details of
their Products that allow users to view/add/delete/modify the products details.

Functional requirements:
1) A Product is identified by ProductCode (integer - Unique) and has additional columns
Description (nvarchar), UnitPrice (decimal) and Category (Integer) to store the product
details
2) Each Product belongs to one or more categories. Categories are defined simply by their
Name: "Beverages", "Diary Products", "Grains", “Seafood” etc.
3) The Web application should allow the user to add, delete, modify and view the products.
4) When adding or updating a Product, Categories must be shown as (Dropdown List)
5) The Web application should allow listing all Products in a system or filter the Products by
Category.

Technical requirements:
1) Use ASP.NET Core (C# language) (MVC) or any front end framework and
ADO.NET/Entity Framework for development.
2) Create table(s) in SQL Server with appropriate Primary and Foreign Keys
3) For Insert or Update, please implement validations as follows.
 Description should not be empty.
 UnitPrice must be a numeric value.
 The user should be warned of possible errors before submitting form to server for
processing.
4) Use Exception handling wherever appropriate
5) Log any unhandled exceptions on server side in a text file.

You might also like