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 to do single page routing in dotnet 3

I have an application which is built using both client side routing using react and server side routing using MapRazorPages. I need to map tasks/* to a specific view and map everything to razor pages. I’m completely new to dotnet so I don’t really know what I’m doing but so far as I can tell I should be able to do something like this: