Professional Documents
Culture Documents
Tools - Visual Studio 2015 MVC 5 Bootstrap 4.3 SQL Server 2014 Task 1 - Lets Start Create Default MVC Project - Shoppingwebsite
Tools - Visual Studio 2015 MVC 5 Bootstrap 4.3 SQL Server 2014 Task 1 - Lets Start Create Default MVC Project - Shoppingwebsite
Tools - Visual Studio 2015 MVC 5 Bootstrap 4.3 SQL Server 2014 Task 1 - Lets Start Create Default MVC Project - Shoppingwebsite
o Install-Package bootstrap
bundles.Add(new ScriptBundle("~/Script/Js")
.Include("~/Scripts/bootstrap.js",
"~/Scripts/jquery-{version}.js",
"~/Scripts/popper-utils.js",
"~/Scripts/popper.js"
));
}
Add Controller –
Add ActionResult
o HomeController
Index
SearchProduct
SearchProductByType
FilterProductBySegment
FilterProductByName
FilterProductByCategory
FilterProductByBrand
FilterProductByBudget
o LoginController
Login
Registration
forgetPassword
changePassword
edit_user_info
o PaymentController
payPal
payTm
debitCard
generateOTP
o CartController
addProductToCart
addNewProduct
placeOrder
deleteProductFrmCart
TASK 2 –
Add Layout
o Go to View Create Shared Folder Add _LayouyPage.cshtml
Remove below code from layout, then layout page will look as below -
@{
Layout = null;
}
Issue 1 – issue in _LayoutPage
o Solution 1 -
The name 'Scripts' (or style) does not exists in the current context in
MVC
In this case, add a code in webconfig –
<system.web.webPages.razor>
<pages>
<namespaces>
<add namespace="System.Web.Optimization"/>
</namespaces>
</pages>
</system.web.webPages.razor>
o Solution 2 –
issue number 2 occurs after above error –
namespace bundleconfig not exist in the current context
in Global.asax.cs file
o Solution –
Goto to BundleConfig.cs find below code
o Solution 2 –
It issue @Styles and @Script still persist –
In these case –
Solution 1 –
o Add namespace in view –
@Using System.Web.Optimization
TASK 2 –
o Add search box as in amazon.com website
o Add Home, SignIn, SignUp, Cart menu
3.
4. Step 3 –
Add Entity framework
o Right click Modal folder Add select New Item new dialog will
appear select c# from left side menus select ADO.Net entity
Model
o Customer.cs
5. Step 4 –
Goto model add DAL folder
Right click to DAL Add interface
Step 7 –
o Add HomeController
o Inside HomeController add constructor –
o Add view page for Index action method like below way –
SHOPPING CART WEBSITE
OBJECTIVE –
1. Case Statement
2. Scenario
3. Actors
4.
5. What is Software project management?
6. How to plan a software? Phases in software planning?
7. Design database
1. Case Statement
Ans.:
In this case, we will be designing a simple online shopping portal.
2. Scenario
Ans.:
A user visits the online shopping portal.
There are two type of user –
o Visitor –
A user visit the page check the product, this type of user are
called as visitor.
He cannot add product to cart. He should login first.
o Customer –
A user visit the website,
Check product of his insterest
do registration
Login to use our application
After
He can add product to shopping cart, and can proceed
with the buying the product online.
While checking the product online –
o Scroll the website
o User may enters product name online
o User may select a segment then a category brand Budget
o User may select the product an click on Buy at that time if is already
login then he will taken to shopping cart page otherwise if user had
not login then he will be taken to login page.
3. Actor
a. Customer
b. Admin
4. What is Software project management?
Ans.:
Software project management is an art of planning.
It compromise of various processes which is divided into multiple task.
Software project management ensures that each task are well coordinated in
such a way that the objective is timely completed.
Project planning helps use to –
o Monitor project progress
o Create a documentation for software planning, tasks, approach o be
used to develop a software.
Definition Phase –
If initialization phase approved then we use definition phase -
o Preconditions
o Functional requirements
A functional requirement document defines the functionality of a
system
o Operational requirements
o Design limitations
Design phase –
o Requirement developed in definition phase is used to draw a design of
software.
o As per requirement, design are drawn using –
Sketch
Flow chart
Web Site trees
Development Phases –
o Requirement developed in design phase is used to create document
for this phase.
Implementation Phase
o Development are actual started in this phase which involve
Designer
Developer
Database manager…etc
Follow up case –
o Operational requirements –
o Design limitations
No Time must be spend on design Design
Design is not need
Default template is used
Design
No Time must be spend on design Design
Development
Implementation
Follow Up
7. WHAT IS DFD?
Ans.:
A data-flow diagram (DFD) is a graphical representation of the flow of a data
of a process from one component to another. The DFD also provides
information about the outputs and inputs of each entity and the process itself.
It gives overview of system without going deep into the details of system.
E.g. -
A data-flow diagram has no control flow, there are no decision rules and no
loops. Specific operations based on the data can be represented by
a flowchart.[1]
Symbols used in DFD
DFD components –
o Process –
Process is a procedure that manipulates the data and its flow by
taking incoming data, changing it, and producing an output with
it. A process can do this by performing computations and using
logic to sort the data or change its flow of direction. Processes
usually start from the top left of the DFD and finish on the
bottom right of the diagram.
o DataStore
Data stores hold information for later use, like a file of
documents that’s waiting to be processed. Data inputs flow
through a process and then through a data store while data
outputs flow out of a data store and then through a process.
o Data flow
DFD Level –
o Level 0, Level 1, Level 3…
o Level indicate the level of information provided by diagram.
0 a simple DFD or overview of system aka Context level diagram,
1 means a more detail,
2 means even more details about and so on.
Level 1
Add item to cart
Add product
Register and Login
Simple-CaseStudy-Online-Shopping-Cart.pdf
8. TABLE DESCRIPTION –
Ans.:
2. Create View
RAMSHAKAL RAMSHAKAL