COIT12204 Web Site Design

Assignment 2 Guide – Part 1

Getting started
  • Download the assignment 2 resources files
  • Copy and replace the updated styles.css
  • You may find some in some situations images and the css does not display. To fix this add a slash at the start of the path for images and also for the css files

i.e. for the Layout.cshtml

    <link rel=”icon” href=”/img/Fevicon.png” type=”image/png”>

    <link rel=”stylesheet” href=”/lib/twitter-bootstrap/css/bootstrap.min.css”>

    <link rel=”stylesheet” href=”/lib/font-awesome/css/font-awesome.min.css”>

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

  • In the product model uncomment the tag for price as we need to set the db column type
    • Right click on the error and import the annotation library
Install Database Packages
  • Add the database packages and tools by following Listing 7.12 to 7.13 in Chapter 7 of the text (see note below if there are problems)
  • Note that you MUST change into the project folder (the one with the yourprojectname.csproj)
    • You cannot run this from the solution folder

Note: If you DO NOT have the 3.1 SDK installed it may complain in Listing 7.12, depending what SDK you specified

  • If this occurs try the following steps
  • Use dotnet –list-sdks or dotnet –info to check your version
  • Then open global.json in the root folder and check the version
  • Change global.json from 3.1.x to your later version

“sdk”: {

  “version”: “5.0.302”  (use your SDK version here)


  • Note: if you changed the version you MUST run the app to update the project SDK before the next step
  • Now you can do Listing 7.12 and Listing 7.13
  • Make sure you hit Save All before running the migrate command
    • If the model is not saved it will not see it to build the migration file
    • If you have a problem open that the migration file and check that the create database and create table commands are there
  • If there is a problem with the migrate, just delete the migrations folder and rerun the migrate command again
  • Note that the database itself is not actually created until later
Database Connection
  • In Listing 7.14 you need to change the database name and the connection name to suit your project name

“ConnectionStrings”: {

    “YourConnectionName“: “Server=(localdb)\\MSSQLLocalDB;Database= YourDbName

DbContext and Repository
  • Do Listing 7.15 to 7.20
  • Note: You will need to change the namespaces to suit your project in most files that you create from the code in the textbook
  • In startup.cs use your connection name
Seed Data
  • In Listing 7.21 move the seed data from the Catalogue controller sample data method into SeedData.cs
  • Note the different format for the Products.AddRange() command
  • Add the seed data call to startup.cs as in Listing 7.22 (this will migrate the database)
  • Delete the old sample data method in the Catalogue controller

Run the project and check that the database has been created

  • View => SQL Server Object Explorer => SQL Server => (localdb)MSSQLLocalDB … => Databases
  • You can also delete the database from here if required (right click on the database)
    • Check Close existing connection when it asks
    • Then rerun the app to recreate (migrate) the database (in SeedData.cs)
  • Adapt the code from Listing 7.23 and inject the store repository into the Catalogue controller
    • Change the constructor name from Home controller to CatalogueController
    • Don’t forget to delete the sampleData() method if you haven’t already
  • Fetch the product list using the repository and pass it to the view
  • Note that the repository returns an iQueryable but the view currently expects a List
    • So, change the model data type in the view to iQueryable<Product>
  • Test that the catalogue page now loads from the database
Catalogue Product Filter
  • Follow the steps below to populate the side menu categories dynamically from the database
  • First you must add the following to _ViewImports.cs as we will be using our own tag helper
    • @addTagHelper *, SportsStore (use your namespace instead of SportsStore)
  • Create the Nav component as in Listing 8.6
  • For listing 8.7 replace the side menu in the Catalogue view (NOT in _Layout as per the text)
    • Delete the <ul> tag and content within it under the Browse Categories heading (head class)
    • This generated the old static menu, but we are not using it
    • Put the nav component under Browse Categories within the sidebar-categories div
  • Run and check that the nav menu displays the sample text in place of the menu
Nav Menu
  • Next use Listing 8.8 and 8.9 to add the category buttons to the menu
  • For Listing 8.9 note that you have to create both the Components folder and the NavigationMenu sub folder (otherwise it won’t find the view if path is not correct)
  • Also in Listing 8.9 change the route parameters to go to the Catalogue controller Index method with the category parameter as shown below
  • And remove asp-route-productPage=”1″ as we are not using paging
    • Note don’t delete the closing >
  • Type these changes into the existing code to match the code below (rather than cutting and pasting the code itself)

    <a class=”btn btn-block btn-outline-secondary”

       asp-action=”Index” asp-controller=”Catalogue”


  • Run and check that the nav menu contains the categories (it will not filter yet)
Add the Product filter
  • Modify the Catalogue controller Index method to filter the products that are displayed using the code below
  • Here we are adding the category parameter we added above to the route to the Catalogue Index method parameters and using it to filter the product list from the repository
  • Note you will need to import Linq to fix the error

public IActionResult Index(string category = null)


    ViewBag.pageName = “Catalogue”;

    return View(repository.Products

        .Where(p => category == null || p.Category == category));


  • Run and check that the products are filtered by category
Set the Current Nav Item
  • In the Nav Component load the current category into the viewbag to set the nav button
    • See Listing 8.10 and add the additional line to the Nav Component invoke() method

ViewBag.SelectedCategory = RouteData?.Values[“category”];

  • We also need set a route to pass the category back to the Catalogue controller
  • We could do it in startup.cs as before
  • However, there is a simpler way to define routes in the controller (uses a TagHelper)
  • In the Catalogue controller above the index method add the two routes below (one with a category and one without)



        public IActionResult Index(string category = null)

        {   …

  • In the Nav Component view file
    • View/Shared/Components/NavigationMenu/Default.cshtml
  • Add the code to highlight the current category using the category we stored in the viewbag
  • Change   

<a class=”btn btn-block btn-outline-secondary”


       <a class=”btn btn-block

       @(category == ViewBag.SelectedCategory

           ? “btn-primary”: “btn-outline-secondary”)”

  • If the images disappear from the Catalogue page add a slash in front of the image path in the View/Shared/ProductSummary.cshtml

<img class=”card-img” src=”/img/product/@Model.Image” alt=””>

  • Run and check that the current category is highlighted

Move on to the Assignment 2 Guide Part 2

Order Now
No Fields Found.
Universal Assignment (September 29, 2022) COIT12204 Web Site Design. Retrieved from
"COIT12204 Web Site Design." Universal Assignment - September 29, 2022,
Universal Assignment June 22, 2022 COIT12204 Web Site Design., viewed September 29, 2022,<>
Universal Assignment - COIT12204 Web Site Design. [Internet]. [Accessed September 29, 2022]. Available from:
"COIT12204 Web Site Design." Universal Assignment - Accessed September 29, 2022.
"COIT12204 Web Site Design." Universal Assignment [Online]. Available: [Accessed: September 29, 2022]

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 45%* OFF 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 at a Pocket Friendly cost, We offer 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

The finest assignment helps in Saudi Arabia

Many students dream to study in Saudi Arabia as they offer some of the best facilities, and they boast one of the most spectacular and rapidly expanding higher education systems in the Middle East. So, this should be of no surprise that every year, many international students prefer to register

Read More »

Expert Solutions for the Best Arithmetic Assignment Help Online

Instant Arithmetic Assignment Help for Students Students most often require Arithmetic assignment help online to solve various calculations. Universal Assignment Help Service provides the best solutions to all arithmetic problems for each student. Students simply have to upload their assignment guidelines on their website, and a customized and accurate assignment

Read More »

Assignment help in Cameroon

The Necessity of Assignment help in Cameroon Today management degrees are one of the most prestigious degrees out there and gaining immense popularity, this degree has the most demand in the market as new startups are emerging day by day, and every company needs the best people to run their

Read More »

Assignment Help in South Korea

Difference between a Good vs Great Online Assignment Tutor The e-learning market is growing at a fast rate due to digitalization. This fact causes an increment in the demand for online tutors as students worldwide searches for a suitable solution for online assignment help in South Korea. You might hear

Read More »

Assignment Help in Japan

Outside-The-Classroom Learning Opportunities It is a typical thinking lesson that stands inside the four walls of a classroom. Some educators say the classroom is the abode of learning and knowledge. We cannot prove these statements wrong. However, one thing is certain: they are partially correct. Learning of concepts starts in

Read More »

Assignment Help in Brazil

Why do Students Consider Online Assignment Help in 2022? Academic life is full of ups and downs. Students who experience such a phase struggle to maintain the equilibrium between personal and professional life. It is because of the load of homework, exams, and participation in extracurricular activities. These events cause

Read More »

Assignment Help in Taiwan

What are the Necessities of Assignment Guidance for Students? As technology takes a new turn around, homework assignments become lengthy and complex. This academic work needs lots of core subject knowledge along with proper research to finish it with proper care. Such work is very time-consuming and hectic for the

Read More »

Assignment Help in Hong Kong

Can You Achieve High Academic Results? Every student wishes to get top scores in their exams. Yet it does not happen if you do not get the correct assignment help in Hong Kong from an online tutor. Such support is in the form of tips, advice, hacks, or taking guidance,

Read More »

VU22977 – Practice in a Legal Environment

Advanced Diploma of Legal Practice – 22565VIC PORTFOLIO- CLIENT MATTER FILE Assessment task 1 Prepare a comprehensive portfolio of documents to create a Client Matter File which must include: Element 1 Area of law Cover sheet stating client name and short description of legal matter Client Instruction Sheet, Costs Agreement

Read More »

KIT714 ICT Research Principles: Assignment 1

Practical Qualitative Research Exercise                                                                                                                                         Type:                 In-Semester, Individual Assignment Task Length:   minimum 2,000 words Weighting:     20% of total assessment for this unit Due Date:       Friday 5 August 2022 – 11:55 pm (Week05) Submission:    electronic submission on MyLO (WORD or PDF) Description:    This practical exercise will engage students in a qualitative research

Read More »

MODULE 44-704463 Dissertation Help

ASSESSMENT CRITERIA Dissertation (12,500 words) Deadline: JULY 29th 2022, 3pm Introduction and abstract  Situates the research question within the, theory, and concepts Explains the value of the study.  Relevance of the research question, to the field of study is fully justified. Leads logically into the Literature Review. Abstract of professional

Read More »

ITECH1103-Assignment: Assignment 2: Analytics Report

Overview The purpose of this task is to provide students with practical experience in writing a data analytical report to provide useful insights, patterns, and trends in a chosen dataset in the light of a set of tasks required within this document. This dataset will be chosen from the UC

Read More »

PBHL20001 Term 1, 2022 – Supplementary Assessment

PBHL20001 Term 1, 2022 Supplementary Assessment The influenza pandemic that followed World War I and took place over the period from 1918-1920 resulted in an estimated 100 million deaths worldwide and 500 million infections. In addition, this pandemic had a significant impact on public health practice throughout the 20th century

Read More »

Community Health Project 1 (HLTH 3058): Assessment 2: Portfolio Task 2

Community Health Project 1 (HLTH 3058) Assessment 2: Portfolio Task 2 – Evaluative Framework Marking Guide Weighting: 15% the total grade for the course   Criteria Outstanding performance (75-100%) Exceeds core requirements (65-74%) Meets core requirements (50-64%) Does not meet requirements (<50%) Comments Content (70%) Demonstrates adequate knowledge of integrating

Read More »

Community Health Project 1 (HLTH 3058): Assessment 2: Portfolio Task 1

Community Health Project 1 (HLTH 3058)Assessment 2: Portfolio Task 1 – Ethical Considerations Marking GuideWeighting of 15% the total grade for the course Criteria Outstanding performance (75-100%) Exceeds core requirements (65-74%)   Meets core requirements (50-64%) Does not meet requirements (<50%) Comments CONTENT (80%) Ethical Considerations   Demonstrates adequate knowledge

Read More »

SAM 11486/SAM G 6677: Assignment 1 – Individual

Assignment 1 – Individual (25%) Report Due: 11:59pm Sunday Week 5 04/09/2022 This assignment will be marked out of 25 marks and is worth 25% of the overall mark for the unit. Please check the unit outline for late penalties and restrictions on late submissions. This assignment is an individual

Read More »

11486 Systems Analysis and Modelling

Assignment Case Study C – Feed Me Now Disclaimer: The situation described in the following case study is fictional, and bears no resemblance to any persons, businesses, or organisations, living or dead. Any such resemblance, if exists, is merely co-incidental in nature, and is not intentional. Feed Me Now is

Read More »

MAA703 – Accounting for Management

Trimester 2 2022 Assessment Task 2 Part B – Teamwork Reflection (Individual) DUE DATE AND TIME:                        Wednesday, 7 September 2022 by 8:00pm (AEST) PERCENTAGE OF FINAL GRADE:    10% WORD COUNT:                                   750 – 800 words Description Teamwork is one of the vital components of many workplaces and the ability to demonstrate

Read More »

Research project assessment proforma and marking schemes

BSc Biomedical Sciences with Health, Exercise and Nutrition (HEN6004) and BSc Biomedical Science (APS6022) Instructions for use All forms must be completed electronically and uploaded to the student submission point in  turnitin. Please note the literature review assessment will be completed in January whereas the assessment of the paper/poster and

Read More »

XERO and Spotlight reporting software Report Assignment

Case facts – Read me carefully please City Infrastructure Holdings Ltd (CIH) and Network Maintenance Services Ltd (NMS) City Infrastructure Holdings Ltd (CIH) acquired 100% of the 300,000 issued shares in Network Maintenance Services (NMS) on 1 July 2021.  The consideration provided to shareholders of NMS consisted of $1.20 in cash plus 1

Read More »

KIT103 Computational Science

School of Information and Communication Technology College of Sciences and Engineering Unit Outline KIT103 Computational Science Semester 2, 2022 Sandy Bay Campus, Hobart Newnham Campus, Launceston COVID-19 (Coronavirus Information) For information on how you can help keep us all safe, please review the Coronavirus updates page here: Sections that

Read More »

SEN725 Urban Stormwater Asset Design

Assessment Task -4 Final Report – Analysis of CoGG Stormwater Network Weight 50% This is an individual assessment task. Plagiarism and collusion is unacceptable practice at Deakin University. You must appropriately reference your work. Failure to do so will result in disciplinary action. For more information on plagiarism and collusion,

Read More »

PSY3PRP 2022 Assignment 2: Research Project Report

PSY3PRP 2022 Assignment 2: Research Project Report Guidelines and Marking Rubric Individual Research Report due Wednesday 19th October 11.59pm (50% of total grade) For this assignment—with support through structured tutorial work across much of the semester— you will produce an individually-written report on the broad topic of feeding difficulties in

Read More »

Increasing Demand for assignment help in Namibia

With the growing population, the demand for clean energy, advanced technology, new structures, and better healthcare is escalating day by day which makes engineering the most popular degree for the youth. As more people pursue engineering nowadays, it also makes it one of the most difficult and competitive degrees also.

Read More »

Online Assignment Help in Germany

How Could You Do Exam Preparation Effectively? Exam time is full of challenges and difficulties. You have to juggle exams even in high school, college, or higher education. It defines your knowledge of a specific subject and how well you know the curriculum. The exam also tests how much you

Read More »

Get Excellent Human Values Assignment Help Immediately

Get Excellent Human Values Assignment Help Immediately: Expert Solutions to all your Queries Instant Human Values Assignment Help Online Students can get Human Values assignment help online in a fast and simple way from the experts at Universal Assignment Help Service. Their team of over 172+ subject experts works every

Read More »

Get Top Modern History Assignment Help Online

Order Modern History Assignment Help immediately Students often need modern history assignment help for many reasons. Getting immediate online help for assignments helps students boost their academics in incredible ways. Sometimes, the pressure of studies is too much to take for students. This causes them to score poor grades and

Read More »

Get Instant Assignment Help in the United Arab Emirates

How Can Assignments Help Students? Whatever the definition of homework is, one thing is certain: it helps students thoroughly learn the concepts they have studied in class. The number of such assignments may cause stress or a burden. It means students and tutors are both correct in their type of

Read More »

Assignment Help in Mexico

How to Gain Awesome Grades in Your Chemistry Subject? Whether you are pursuing a technical degree or studying in the science stream, chemistry is always at the forefront. If you love to observe reactions, molecules, acids, condensation, evaporation, and dilution, chemistry will prove a resource for getting outstanding academic marks.

Read More »

Can't Find Your Assignment?

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