Problem receiving form data in the controller. C# – MVC

Friends, I have 3 tables. Person, Student and Address. Person is a general table, has the fields of name, email, phone, etc. And I have an address table to save the student’s address. I’m having trouble bringing the information from the address fields dynamically and finalizing a new student registration.I appreciate if anyone can analyze.

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

Blazor Role based Authorization – No service for type ‘Microsoft.AspNetCore.Identity.RoleManager’

I’m using a free project from GitHub that uses Blazor with EF Identity and SQLite. Its a good starting point for me to learn and add more functionality. Currently, I would like to add authorization to the project to allow specific users to have access to particular pages. My first step is to add default roles and account. I managed to find some sample codes that do that during startup. However, I get the following runtime error.

Generate a secure double defined on range [0.0d – 1.0d] (both inclusive)

I need to know how to generate a secure double defined on range [0.0 – 1.0] both inclusive.
I generate two big ulong numbers with RNGCryptoServiceProvider class, make sure that the second number is greater or equals to the first number and then divide the first number by the second number and cast result to double. Ideally, numbers 0.0d and 1.0d should be included in this range, but they’re never included. It must be something with mantissa with double values. Do you know how to fix it?