COIT12204 Web Site Design Assignment 2 Guide – Part 2


Add a slash before the nav routes in the _Layout.cshtml file otherwise you may get an exception when changing pages

  • href=”/Home”>Home</a></li>
  • href=”/Catalogue”>Products</a></li>

Also add a slash before the css and also the image paths at the top if you haven’t done this already

i.e. <link rel=”stylesheet” href=”/css/style.css”>

Product Details Page
  • Add a ProductDetails() method to the catalogue controller
  • Pass one parameter into the ProductDetails method which will be int productId
    • We will set up the route for this in a soon to pass the product id to the controller
  • Retrieve the product from the database. For the LINQ command use the code below (from Listing 8.25 which uses product id to fetch the product)
  • Watch the case for the product id variable and database field in the method parameters and LINQ

Product product = repository.Products

    .FirstOrDefault(p => p.ProductID == productId);

  • Pass the product to the view
  • Add a corresponding ProductDetails view to the catalogue view folder
  • The model for the view will be of type Product
    • Add the body (excluding header and footer) from the single-product.html template file provided and copy it into the view
    • Populate the page using the product model that was passed in
      • Don’t forget the image. Check the catalogue page for the format
      • Also add a slash here before img


Open from the Catalogue Page
  • Next, we need to open the product details page when the product image is clicked in the catalogue page. For this we need to pass the product id of the image clicked
  • We could set up a route to the product details method in startup.cs and pass the product id

app.UseEndpoints(endpoints => {

    endpoints.MapControllerRoute(“ProductDetails”, “Product/{productID}”,

        new { Controller = “Catalogue”, action = “ProductDetails” });



  • However, it is easy to use a tag helper in the Catalogue controller as we did before
    • Note that the route name does not have to have any association with the controller and method names so you can name it anything meaningful


public IActionResult ProductDetails(int productId)

    Add the link to the Catalogue Product Image                   
  • Add a link around the product image in our partial view for the image click
  • Use the route above and pass the product id in the route

            <a href=”/product/@Model.ProductID”>

                <img …>


  • The product details page should now open when an image is clicked and display the products details for that product
  • You can follow Listing 8.13 to 9.6 as a guide for the cart
  • However, the cart is something universal and is reasonably portable so you may copy the cart files from SportsStore. Still, you should check this against the text
    • Copy the shopping cart class and the session cart classes from the Models folder
    • Create the Infrastructure folder in the root
      • Copy SessionExtensions.cs to this folder
    • Create the Pages Folder
    • From the Pages folder copy the _CartLayout.cshtml, _ViewImports.cs, _ViewStart.cs and Cart.cshtml and Cart.cshtml.cs files
  • Be careful to change to your namespace
  • See Listing 8.13, Listing 8.21 and Listing 9.3 to update the startup configuration for Razor Pages, Sessions, HTTPContext and Cart as a service
  • Open the cart page using the URL below and check that the page is displayed
  • Note that the cart will be empty
Add to Cart Button
  • In the Product Details page, we wrap the quantity and Add to Cart button in a Form (based on Listing 8.21) so we can add items to the cart
  • Above the product_count div, insert the code for the start of the form

<form asp-page=”/Cart” method=”post”>

   <input type=”hidden” name=”productId” value=”@Model.ProductID”/>

  • Below the submit button, close the form

       <input type=”hidden” name=”returnUrl”

           value=”/Catalogue />


  • Test the add to cart. It should add one item to the cart each time the Add to Cart button is pressed
  • The remove item should delete an item from the cart
  • The Continue Shopping button should return you to the Catalogue page
  • I have provided less guidance for the items below which may require you to do a little research
Cart Layout
  • You will need to copy the main layout for the cart layout and alter as required
  • You will need to remove the footer
    • or add a margin on the top of the footer to create a gap below the buttons
Product Quantity
  • The SportsStore cart page only added a single item per click, but we need to add the quantity from the spin control. Fortunately, the template markup has the value as a text input named quantity. For this you will need to modify the OnPost method
  • Test the add to cart. The quantity set should be added to the product quantity in the cart
Cart Nav
  • Add the Cart icon button onClick event to open the cart
Cart Icon
  • Change the number beside the cart icon in the header to reflect the total number of items in the cart. For this you can inject the Cart into both controllers and use the ViewBag or create a component as in the Sports Store.

Complete all other items in the specification and marking criteria.

  • Note that you may change the text on the Sale button
Order Now
No Fields Found.
Universal Assignment (March 26, 2023) COIT12204 Web Site Design Assignment 2 Guide – Part 2. Retrieved from
"COIT12204 Web Site Design Assignment 2 Guide – Part 2." Universal Assignment - March 26, 2023,
Universal Assignment June 22, 2022 COIT12204 Web Site Design Assignment 2 Guide – Part 2., viewed March 26, 2023,<>
Universal Assignment - COIT12204 Web Site Design Assignment 2 Guide – Part 2. [Internet]. [Accessed March 26, 2023]. Available from:
"COIT12204 Web Site Design Assignment 2 Guide – Part 2." Universal Assignment - Accessed March 26, 2023.
"COIT12204 Web Site Design Assignment 2 Guide – Part 2." Universal Assignment [Online]. Available: [Accessed: March 26, 2023]

Please note along with our service, we will provide you with the following deliverables:

Please do not hesitate to put forward any queries regarding the service provision.

We look forward to having you on board with us.

Get 90%* Discount on Assignment Help

Most Frequent Questions & Answers

Universal Assignment Services is the best place to get help in your all kind of assignment help. We have 172+ experts available, who can help you to get HD+ grades. We also provide Free Plag report, Free Revisions,Best Price in the industry guaranteed.

We provide all kinds of assignmednt help, Report writing, Essay Writing, Dissertations, Thesis writing, Research Proposal, Research Report, Home work help, Question Answers help, Case studies, mathematical and Statistical tasks, Website development, Android application, Resume/CV writing, SOP(Statement of Purpose) Writing, Blog/Article, Poster making and so on.

We are available round the clock, 24X7, 365 days. You can appach us to our Whatsapp number +1 (613)778 8542 or email to . We provide Free revision policy, if you need and revisions to be done on the task, we will do the same for you as soon as possible.

We provide services mainly to all major institutes and Universities in Australia, Canada, China, Malaysia, India, South Africa, New Zealand, Singapore, the United Arab Emirates, the United Kingdom, and the United States.

We provide lucrative discounts from 28% to 70% as per the wordcount, Technicality, Deadline and the number of your previous assignments done with us.

After your assignment request our team will check and update you the best suitable service for you alongwith the charges for the task. After confirmation and payment team will start the work and provide the task as per the deadline.

Yes, we will provide Plagirism free task and a free turnitin report along with the task without any extra cost.

No, if the main requirement is same, you don’t have to pay any additional amount. But it there is a additional requirement, then you have to pay the balance amount in order to get the revised solution.

The Fees are as minimum as $10 per page(1 page=250 words) and in case of a big task, we provide huge discounts.

We accept all the major Credit and Debit Cards for the payment. We do accept Paypal also.

Popular Assignments

BAFI1002 Financial Markets: FX Dealing Session Report

Introduction: This is a written report authorised by Snowy River Ltd to deliver and improve the trading strategy for a renowned FX trading company. Due to the high market uncertainty caused by the coronavirus pandemic so that its profitability can be enhanced in the upcoming future. BAFI1002 Financial Markets –

Read More »

Binomial Trees and Properties of Options

In this question, you need to price options with binomial trees. You will consider puts and calls on a share with spot price of $30. Strike price is $34. Furthermore, assume that over each of the next two four-month periods, the share price is expected to go up by 11%

Read More »

Enterprise Risk Management Assignment

ASSESSMENT FEEDBACK TO BE FILLED BY THE ASSESSOR Assessment types Marks Marks Awarded Executive Summary 7   Introduction 8   Literature Review 20   Application of Theory to Practice 20   Developing Risk Management 25   Conclusion & Recommendation 10   References 10   Overall Marks 100   Overall Grade

Read More »

CAPM Assignment Help

Year                    After tax cash flow (2 marks)                                             USD Initial cash outlay              80000 Discount rate                        10% Expected cash flow(end of the year)    Y1 = 20000                                                                      Y2 = 20000 till Y6 20000    Telex Ltd is an all-equity financed firm and is considering the following projects: Project           Beta              Expected Return A                 

Read More »

GGR240: Geographies of Colonialism in North America

This assignment requires you to build on the research you conducted for Assignment 2 and craft a seven-to-eight-page expository essay (maximum 2000 words, before notes and bibliography) on the topic you chose for that Assignment. (If you wish to change your topic, please discuss it with me.) Your essay MUST

Read More »

FIN4001 Introduction to Finance Assignment

Date for Submission: Please refer to the timetable on ilearn (The submission portal on ilearn will close at 14.00 UK time on the date of submission) Page 1 of 11 [1289] As part of the formal assessment for the programme you are required to submit an Introduction to Finance assignment.

Read More »

SOE11144- Global Business Economics and Finance

Project 1 A. Project background Story of ScotchExtract taken from the Scotch Whisky Association web page. Scotch Whisky must, by law, be distilled and matured in Scotland in oak casks for at least three years and bottled at a minimum alcoholic strength of 40% abv. The robust legal protection of

Read More »


Submission Requirements. UNIT CODE: ACT305 UNIT NAME: CORPORATE ACCOUNTING Assignment Information Semester 2 2021 Assessment 20% This assignment is to be submitted before 23.59pm Friday 29th October in Week 11 Assignments are to be submitted by one of the following means; DO NOT LODGE BY FAX nor EMAIL nor at

Read More »


MITS4002 OBJECT-ORIENTED SOFTWARE DEVELOPMENT Activity 03 Weightage: 15% Due date: Sunday Lesson 04 11:59 PM       Late penalty applies on late submission, 10% per day would be deducted 0 mark for LATE Submission more than one week     You will be marked based on your submitted zipped

Read More »


Assessment One Learning Objective PART A (PROJECTS) (700-1100 words) – ( 35 marks) You have learnt the key characteristics of projects in Topic 1 of this unit. Part A requires you to apply this knowledge and any further research to a real project. (400-500 words) (15 marks) PART B (PROJECT

Read More »

CVEN6005 – Advanced Hydraulics & Hydrology

Assignment Brief – Part 1 Unit CVEN6005 – Advanced Hydraulics & Hydrology Assignment Weight 25% of unit     Issue Date w/c 27th February 2023 Due Dates 23:59, 22nd April 2023 (Part 1A) 23:59, 6th May 2023 (Part 1B)     Group Size Maximum 2 students per group Students completing

Read More »

Assignment 1: Identifying a Research Problem

Guideline 1: Choose an appropriate area of enquiry. The area of inquiry that you choose must: Guideline 2: Adhere to best practices for each component of the ‘Introduction’ chapter. Guideline 3: Use academic English throughout your project. You must incorporate these elements to ensure that your project is professional and

Read More »

The Global Economy Assignment help

Unit Name: The Global Economy Answer all the questions below. Question 1 (this question has three parts, (a), (b) & (c)) Country A Country B phones computers phones computers 1000 0 600 0 500 200 400 300 0 400 0 800 (i) Can you tell which country has a comparative

Read More »

MAE 203 The Global Economy Estimated Reading

DEAKIN UNIVERSITY FACULTY OF BUSINESS AND LAW Department of Economics FINAL EXAMINATION TRIMESTER 1, 2021 Unit Code: MAE 203 Unit Name: The Global Economy Estimated Reading Time: 15 minutes Estimated Working Time: 2 hours Estimated time for preparing and submitting your final responses to CloudDeakin Dropbox: 45 minutes This is

Read More »

Property Asset Finance Assignment

QUESTION 1 (This question has three parts, (a) , (b) and (c) ) Discuss the following questions in detail: QUESTION 2 (This question has three parts, (a), (b) and (c)) QUESTION 3 (This question has three parts, (a), (b) and (c)) Abacus Property Group, a diversified property group listed on

Read More »


COURSE:                                 BACHELOR OF ACCOUNTING UNIT:                                       ICT 201 BUSINESS INFORMATION SYSTEMS ASSESSMENT TASK:                                    ASSIGNMENT 2 ASSESSMENT MARKS:            30% DUE DATE:                              Week 12 ASSESSMENT INSTRUCTIONS The second assignment provides an opportunity to applied knowledge of the concept of data and information and business information systems for the purpose of strategic and operational

Read More »

Critically evaluate the auditors’ role in detecting financial statement frauds

Semester April 2021 Module Code ACC4304 Module Title Auditing Coursework Structure Essay (1,800 words) Assignment Weighting 40% Assignment Title Critically evaluate the auditors’ role in detecting financial statement frauds. Coursework Submission Deadline Date: Week 13 of April 2021 Session Time: 5pmMethod: SafeAssign via Blackboard Assessment Criteria Learning Outcomes: Knowledge and

Read More »

Computer Security Vulnerabilities and Countermeasures

Computer Security (CSI1101) Case Study:                  Computer Security Vulnerabilities and Countermeasures Weighting:                    40% of the final mark of the unit Due Date:                     Check Blackboard under Assessment à Assignments à Assessment Overview Word count:                 3500 words excluding the Title Page, Table of Contents, Reference list, and Appendices (if you wish to add).

Read More »

System Analysis & Design

To make this assignment (and thus the module) more relevant and interesting for you, rather than give all students the same fixed (and artificial) case study, you will select your own realworld case study and then apply the concepts and techniques you have learned from this module to that case

Read More »


_________________________________________________________________________ CBOP3103 OBJECT ORIENTED APPROACH IN SOFTWARE DEVELOPMENT PENDEKATAN BERORIENTASIKAN OBJEK DALAM PEMBANGUNAN PERISIAN MAY 2021 SPECIFIC INSTRUCTION / ARAHAN KHUSUS Jawab dalam BAHASA INGGERIS atau BAHASA MELAYU. Jumlah patah perkataan: 2500 – 3000 patah perkataan tidak termasuk rujukan. Hantar tugasan SEKALI sahaja dalam SATU fail. Tugasan ini dihantar secara

Read More »

Assignment 2: Case study – Template and tips

Assignment 2: Case study – Template and tips Contents Overview of the assignment………………………………………………………………………………… 2 Aim of the Case Study assignment…………………………………………………………………….. 2 Selecting a behaviour……………………………………………………………………………………… 2 Overview of structure…………………………………………………………………………………….. 3 General formatting notes………………………………………………………………………………… 3 Frequently Asked Questions…………………………………………………………………………….. 3 Assignment structure………………………………………………………………………………………… 5 HEADING: Reason for Referral………………………………………………………………………….. 5 HEADING: Assessment……………………………………………………………………………………. 5 SUBHEADING: Behaviour

Read More »

BUSM4741 Financial Analytics for Managerial Decisions

Graduate School of Business and Law — Course Code: BUSM4741 Subject Name: Financial Analytics for Managerial Decisions Assessment # 1: Reflective Exercises Assessment Type: Individual Reflections Word limit: 2,000 (+/– 10%)   Due date:     Weighting   Sunday of Week 3, 23:59 (Melbourne time)     20 %  

Read More »

PROJ6004: Contracts and Procurement

ASSESSMENT BRIEF – Assessment 2 Subject Code and Title PROJ6004: Contracts and Procurement Assessment Assessment 2: Contracts and Procurement Review of the case study and associated Learning Resources, including detailed analysis of findings. Individual/Group Individual Report Length 2400 words Learning Outcomes Critically evaluate the risks associated with contract and procurement

Read More »


ASSIGNMENT 1: 2nd SEMESTER 2021 FINANCIAL MANAGEMENT (FM202B) Please note that this assignment consists of three sections, all of which should be completed. SECTION 1 Working capital [10] Extract from Shoprite Holdings group financial statements   Rm Rm   2020 2019 Revenue 83 430 79 711 Cost of sales –     

Read More »

Research & Enquiry – Assignment Two

In what ways can an organisation increase an employee’s work motivation? 1.0 Introduction The main objective of human resource management is to ensure long term organisational performance by aiming for optimal employee productivity (Hanaysha & Majid, 2018). Employees are an organisation’s most valuable assets and managers are always looking for

Read More »

BBF308/03 International Financial Management Assignment

BBF308/03 International Financial Management Assignment 1 (50%) September 2021 Semester Instructions BBF308/03 ASSIGNMENT 1 Part 1 (100 marks) Answer ALL questions. QUESTION 1 (25 MARKS) QUESTION 2 (25 MARKS) Three friends Derek (Malaysia), Nook (Thailand) and Minori (Japan) decided to join an international competition of innovation product. The registration fee

Read More »

LAW203 Taxation Law

Course:                            Bachelor of Accounting Unit:                                LAW203 Taxation Law Assessment Task:                                        Task 2 – Individual Assignment Assessment Marks:                             30% or 30 marks Assessment task Type (1) When assessed – year, session and week Weighting (%        of total marks for unit) Cross reference to learning outcomes Case Study Assignment and Class Debate:

Read More »

Can't Find Your Assignment?

Open chat
Free Assistance
Universal Assignment
Hello 👋
How can we help you?