Dynamic amount of DateTime controls forwarded to controller
I’ve created a model that has its own class:
I’ve created a model that has its own class:
I have my cdn pointing to a different path to my project
I’ve got this button which changes a boolean in the database after clicking it. If the boolean PausedCMDBUpload = true the button should display UNPAUSE if the boolean is false, it should display PAUSE.
I always try to separate my code as much as possible. I’m fairly new to ASP.NET Core but the code principles and software design patterns are the same in all languages, however, when using entity-framework, there’s something that bothers me, or that I don’t know how to deal with.
I used ASP.NET Identity before and now I want to use ASP.NET Identity Core in my ASP.NET Core + Angular app.
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.
I am trying to use Identity Server 4 with my Web API written in .NET Framework 4.6.2. I am using the IdentityServer3.Contrib.AccessTokenValidation library as mentioned in this answer. But, the calls to the protected endpoints are returning a 402 redirect.
I cannot access the original value that didn’t pass the model validation. I would suspect AttemptedValue and/or RawValue in ModelStateEntry to contain the original value, however both properties are null.
[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
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: