Problem with controllers and routing using asp.net core

Im new to asp.net Core and i’ve stumbled upon problem with my routing/Controller. Not sure which one is faulty. Overall I don’t know how to set up multiple controllers for multiple .cshtml files which will allow me to move between pages or do simple CRUD operations. I’ve created standard Web application project. My Project schema looks like on picture before.

ASP.NET MVC – Regex to allow less than character safely

I have a ASP.NET MVC 5 app where my business users require to enter a < (less than sign). For their specific business segment the < is a common used sign. I know about the problem of XSS-Attacks, but I’m trying to find a solution to allow just the < without opening XSS-Attacks. I DON’T want to allow HTML, so I don’t what to set [AllowHtml] or disable the validation rules. They should be turned on.

ASP.NET Core storing image to SQL Server null

I am a beginner in ASP.NET Core 3.1 and i am creating this application with EF Core tutorial from Microsoft site, when i try to create a new Job and store Photo, Photo attribute says null on database, i don’t know why?
I used debugger to see if image is coming to Create method in controller and IFormFile Image parameter says it is null.

cannot convert from ‘IEnumerable’ to ‘IEnumerable

[TestMethod] public async void Select_getallTask() { //Arrange IEnumerable<TaskToDo> list = new List<TaskToDo>(); var mockrepo = new Mock<ITaskToDoRepository>(); mockrepo.Setup(x => x.GetTasks()).Returns(list); //Act var data = mockrepo.Object.GetTasks(); //Assert Assert.AreEqual(data, list); } this gives me error on mockrepo.Setup(x => x.GetTasks()).Returns(list); Error: Severity Code Description Project File Line Suppression State Error CS1503 Argument 1: cannot convert from 'System.Collections.Generic.IEnumerable<ToDoApp.Models.TaskToDo>' to … Read more

How do I get IIS to return a Custom-Cache Control Header from WebApi 2, IIS 10 returns private every time

** UPDATE Jan 27, 2021 **
I have been working with Microsoft on this issue and we did a request trace and reviewed the FREB log and confirmed that the code is outputting the correct headers but in the END_REQUEST handler they are replaced with cache-control private. After building several virtual machines from scratch we learned that out of the box, this problem doesn’t happen. However when we install the latest version of STACKIFY AGENT (4.29.29) once we put the agent on this behavior happens. Older versions of Stackify agent (RETRACE profiler and APM) don’t do this, but so far, this is irreversible: once we install 4.29.29 of Stackify, uninstalling or installing older versions doesn’t undo this issue, the environment is somehow permanently modified.