COIT12204 Web Site Design Assignment 2 Guide – Part 2

Note:

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

src=/img/product/@Model.Image

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” });

    endpoints.MapDefaultControllerRoute();

});

  • 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

[Route(“Product/{productId}”)]

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 …>

         </a>

Test
  • The product details page should now open when an image is clicked and display the products details for that product
Cart
  • 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
Startup.cs
  • 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
Test
  • 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 />

   </form>

Test
  • 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
Note
  • 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
  • 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 (January 28, 2026) COIT12204 Web Site Design Assignment 2 Guide – Part 2. Retrieved from https://universalassignment.com/assignment-2-guide-part-2/.
"COIT12204 Web Site Design Assignment 2 Guide – Part 2." Universal Assignment - January 28, 2026, https://universalassignment.com/assignment-2-guide-part-2/
Universal Assignment June 22, 2022 COIT12204 Web Site Design Assignment 2 Guide – Part 2., viewed January 28, 2026,<https://universalassignment.com/assignment-2-guide-part-2/>
Universal Assignment - COIT12204 Web Site Design Assignment 2 Guide – Part 2. [Internet]. [Accessed January 28, 2026]. Available from: https://universalassignment.com/assignment-2-guide-part-2/
"COIT12204 Web Site Design Assignment 2 Guide – Part 2." Universal Assignment - Accessed January 28, 2026. https://universalassignment.com/assignment-2-guide-part-2/
"COIT12204 Web Site Design Assignment 2 Guide – Part 2." Universal Assignment [Online]. Available: https://universalassignment.com/assignment-2-guide-part-2/. [Accessed: January 28, 2026]

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.

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 info@universalassignment.com . 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

Can I Pay Someone to Do My Assignment? A Complete Student Guide

If you’re a student juggling multiple deadlines, exams, part-time work, or personal responsibilities, you may have found yourself asking: can I pay someone to do my assignment? You’re not alone. This is one of the most searched academic questions today, especially among university and college students worldwide. In this blog,

Read More »

Project Development and Analysis in Emerging Technologies

Assessment Brief- Assessment 2 Unit Code/Description ICT305 – Topics in IT Course/Subject BIT Semester 2024- S1 Unit Learning Outcomes Addressed ULO 1, 2, and 3. Assessment Objective The primary objective of this assessment is to provide students with hands-on experience in designing, implementing, and analysing a project in one of

Read More »

EDUC1006 Interdisciplinary Studies: Crossing the line

ASSESSMENT 2: Report Summary Title Assessment 2 Type Report Due Date Thursday 17 April, 11.59 pm (end of Week 6) Length 1500 words or equivalent Weighting 50% Academic Integrity The use of GenAI is allowed but limited for this assessment task. Submission Word document or PDF submitted to Turnitin Unit

Read More »

Writing in Community Development

Assessment Overview Overview Length or Duration Worth Due This essay should demonstrate a coherent argument, which is backed up by evidence from relevant journal articles, books and websites. You are expected to make two direct quotations only; and the rest should be paraphrases. You should also list at least eight sources.   If you are unsure of

Read More »

Counselling Theory and Practice in Schools

Assignment 1 Requirements Word limit 2500 words; excluding references Referencing You’re required to follow APA Academic Integrity Please refer to the Guidelines Task Purpose 🎯 This assessment task is designed to develop and assess students’ critical thinking and reflective skills, essential for counselling professionals in educational contexts. By engaging in a literature

Read More »

PSY1040 Cultural Responsiveness Self-Assessment

PSY1040 Cultural Responsiveness Self-Assessment The below self-assessment tool has been adapted from the following resource: Bennett, B., & Morse, C. (2023). The Continuous Improvement Cultural Responsiveness Tools (CICRT): Creating more culturally responsive social workers. Australian Social Work, 76(3), 315–329. Bennett’s collection of Cultural Responsiveness Self-Assessment Tools is designed for social workers

Read More »

TEAC7094 Assessment 2 Report: Analysis of a Student Work Sample

TEAC7094 Assessment 2 Report: Analysis of a Student Work SampleRemember to include a completed Cover Sheet for this task. CONTEXT PROBLEM AND SOLUTION (approx. 600 – 800 words) RECOMMENDATIONS (approx. 400 words) CONCLUSION REFERENCES Appendix One: Annotated and coded interview transcript from working with the child Appendix Two: Annotated and

Read More »

Psychological Data Analysis Report

Written Assignment This page outlines the major written assignment and the steps involved in preparing for submission. This assignment will allow you to develop essential skills in analysing and interpreting a data set to address a psychological issue and report the results in APA style. Note that separate documents are

Read More »

Principles of Economics

Principles of Economics Short-answer Assignment V1 (20% of final mark) The assignment consists of four questions.  You should allocate at least half a page (or 250 words) to each answer or 1000 words for all four answers depending on the nature of and/or marks allocated for the question/s. You may

Read More »

MRTY 5134 Laboratory Report Assignment

MRTY 5134 Laboratory Report Assignment Semester 1 2025Due 18th May 2025Answer TemplateEnter your name and student number below.Name:SID:Use this document to record your answers to the tasks described in the laboratoryreport assignment. When completed submit this document for marking via theassignment portal in Canvas.Things to note:

Read More »

Mind Map – Personal Philosophy

Mind Map – Personal Philosophy Assessment 2  Assessment Overview Overview Length or Duration Worth Due Part A – Annotated mind-map (equivalent to 350 words). Part B – 350 word personal reflection about your history, identity and values and link it with concepts explored in the unit. Part A – 350 words equivalent

Read More »

Consumer Partnerships in OT Practice

ASSESSMENT NUMBER 3 ASSESSMENT TYPE Written assignment DATE FOR SUBMISSION Refer to the Course Profile WEIGHTING 40% LENGTH   Part A – 500 words Part B – 500 words Part C – 500 words Notes This word allocation includes in-text references but excludes the reference list.There is no allowance for

Read More »

HPSYSD101 The Evolution of Psychology

ASSESSMENT 2 BRIEFSubject Code and Title HPSYSD101 The Evolution of Psychology Assessment Task Annotated BibliographyIndividual/Group IndividualLength 2,000 words (+/- 10%)Learning Outcomes The Subject Learning Outcomes demonstrated by successfulcompletion of the task below include:b) Examine the significant figures, events and ideas present inthe history of psychology.c) Identify and relate the key

Read More »

Literature Review and Reflection on Counselling in Education

Assessment Task SheetEDU6114 – Assessment 1 – Literature Review and Reflection Course Code and Name EDU6114 – Counselling in EducationAssessment Name Literature Review and Reflective EssayAssessment Item 1 Assessment Type EssayMarks/Weighting 50% Length 2500 words (excluding references)Assessed LearningOutcomesCLO 1, 3, 7 Due Date Please check Study Desk for Due DatesRationale

Read More »

NUTR1023 Health and Fitness through Diet and Exercise

Subject NUTR1023 Health and Fitness through Diet and Exercise Assessment Personal Diet and Exercise Plan Learning Objectives Apply the principles of training to develop a personal exercise program with appropriate mode/intensity/frequency to develop the students’ own health and fitness.Apply the current dietary guidelines to develop a personal diet plan for

Read More »

Behaviour Support Plan & Reflection

Overview Submit your support plan and reflective piece as one document. Description Part A: Support plan (1750 words) For a case study develop a support plan. This plan should aim to support an individual to reduce the need for a behaviour that challenges to occur. Collect and analyse data on a behaviour

Read More »

ASSESSMENT 2: Child Study Report

ASSESSMENT 2: Child Study Report Moderater very strict on  Rubric, its her bible, so please look into it Assignment – Written Assignment Due Date: 28th May, 23:59 (AEST) Weight: 60% Description (2500-3000 words): In this task, you are required to apply your knowledge of observational methods and child development to write

Read More »

Arts Assignment Help Australia

Introduction Arts is a broad and creative discipline that encompasses visual arts, performing arts, music, design, literature, and creative writing. Studying arts helps students explore creativity, cultural heritage, and expression through multiple mediums. In Australia, arts courses are offered at universities and TAFE institutes such as University of Melbourne, Monash

Read More »

Health Sciences Assignment Help Australia

Introduction Health Sciences is a multidisciplinary field that studies human health, disease prevention, treatment, and healthcare management. It encompasses areas such as nursing, public health, anatomy, physiology, medical research, and healthcare administration. In Australia, health sciences is a highly sought-after discipline offered at universities including Monash University, University of Melbourne,

Read More »

Literature Assignment Help Australia

Introduction Literature is the study of written works, encompassing poetry, prose, drama, fiction, and non-fiction, with a focus on understanding themes, symbolism, and cultural context. It is an essential discipline for students studying English, humanities, or creative writing at universities like University of Melbourne, Monash University, University of Sydney, and

Read More »

Humanities Assignment Help Australia

Introduction Humanities is the study of human culture, society, and history, encompassing disciplines such as history, philosophy, literature, sociology, linguistics, and cultural studies. It plays a crucial role in understanding human behaviour, values, and creativity. In Australia, humanities courses are offered at leading universities including University of Melbourne, Monash University,

Read More »

Environmental Science Assignment Help Australia

Introduction Environmental Science is an interdisciplinary field that studies the relationship between humans and the natural environment. It covers topics such as ecology, climate change, sustainability, pollution control, and environmental management. In Australia, environmental science is a popular field of study due to the country’s rich biodiversity and focus on

Read More »

Biology Assignment Help Australia

Introduction Biology is the science of life, exploring everything from molecular structures to ecosystems. It is a core subject in disciplines such as medicine, nursing, biotechnology, environmental science, and genetics. Students in Australia pursuing biology at universities like Monash University, University of Melbourne, University of Sydney, and Deakin University often

Read More »

Education Assignment Help Australia

Introduction Education is one of the most impactful fields of study, focusing on teaching methods, pedagogy, curriculum development, and learning strategies. Students pursuing education degrees in Australia at institutions such as the University of Melbourne, Monash University, University of Sydney, and Deakin University aim to become skilled teachers, administrators, and

Read More »

Economics Assignment Help Australia

Introduction Economics is the study of how societies allocate scarce resources, focusing on production, consumption, and decision-making. As one of the most popular academic fields in Australia, economics is taught at leading universities including the University of Melbourne, Monash University, University of Sydney, and ANU. Students pursuing economics often face

Read More »

Psychology Assignment Help Australia

Introduction Psychology is the scientific study of the human mind and behaviour, covering areas like cognition, emotions, mental health, and social interactions. In Australia, psychology is one of the most popular disciplines, with thousands of students enrolling at universities such as the University of Melbourne, Monash University, University of Sydney,

Read More »

Marketing Assignment Help Australia

Introduction Marketing is a dynamic and ever-evolving discipline that plays a critical role in the success of any business. From branding and market research to digital campaigns and consumer psychology, marketing requires both creativity and analytical thinking. In Australia, marketing students studying at top institutions like the University of Melbourne,

Read More »

Finance Assignment Help Australia

Introduction Finance is one of the most essential fields of study, forming the backbone of global business, economics, and investment. In Australia, students pursuing degrees in finance, accounting, economics, and business management at top institutions such as Monash University, University of Melbourne, University of Sydney, and RMIT face an intense

Read More »

Computer Science Assignment Help

Introduction Computer Science is one of the fastest-growing and most demanding academic disciplines worldwide. Students in Australia, the UK, and beyond pursue computer science degrees to build careers in software engineering, artificial intelligence (AI), cybersecurity, data science, and web development. However, the field is highly technical and requires extensive practical

Read More »

Law Assignment Help Australia

Introduction Law is one of the most intellectually challenging and competitive fields of study in Australia. Students pursuing law degrees at prestigious institutions such as Monash University, University of Melbourne, University of Sydney, and Australian National University face an intense academic workload. From legal case studies and essays to research

Read More »

Can't Find Your Assignment?