View Single Post
  #1 (permalink)  
Old January 31st, 2017, 04:07 PM
Blump74 Blump74 is offline
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2017
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default More Chapter 6 problems

I downloaded the chapter 6 solution and started working through. When trying to run the Create page i get

Compiler Error Message: CS1503: Argument 1: cannot convert from 'string' to 'RentMyWrox.Models.Hobby'
Line 79: @foreach (string hobby in hobbyList)
Line 80: {
Line 81: string checkedText = Model.Hobbies.Contains(hobby) ? "checked" : string.Empty;
Line 82: <span>
Line 83: <input name="hobbies" value="@hobby" type="checkbox" @checkedText/>

I then tried starting from the downloaded chapter 5 solution only to find the controller folder missing !!!!! - helpful

Does anyone have a solution that works for chapter 6?
I'm losing the will to live with this book and dont see how you can learn from it when you just expecting more and more errors!
Are refunds available
Reply With Quote