Sandy Jones

Sandy Jones

  • NA
  • 12
  • 1.9k

Use index.cshtml or index.html

Feb 2 2019 3:25 PM

Hello, I have a question about the todo app. 

I am confused as to what to do. I pasted in the area of the instructions where I have gotten stuck.  I created the Todo class  but when it says:

Now, "add a View to Index and chose Todo model class."  I have an index.cshtml, but no index.html.  Is the index.cshtml file the correct file to add a view to?  

Thanks!
SJ 
 
HERE ARE THE INSTRUCTIONS ON THE PAGE:
Inside Models directory, add a new Workaround class.

ASP.NET

And temporarily, write a new Todo class that inherits from SmartIT.Employee.MockDB.Todo class.
  1. namespace Todo.Mvc.Ui.Models
  2. {
  3. public class Todo : SmartIT.Employee.MockDB.Todo{}
  4. }

Now, add a View to Index and chose Todo model class.

ASP.NET

Index.html page changes the model namespace to SmartIT.Employee.MockDB.


Answers (2)