Questions tagged as 'asp.net-core'

0
answers

The field Value Paid must be a number. ASP NET MVC

I have this field in Model: public decimal Valor { get; set; } It writes correctly, and shows me the value this way:    10.00 But when I edit and complete the action, it returns me:    The field Value Paid must be a number. I...
asked by 13.07.2018 / 20:49
0
answers

How to change angular version within an asp.net core project

I have an Asp.Net Core 2.0 project. Well, I need to now build some screens to make a CRUD using Angular . You should use the Angular 6 , here in the company. Well, when I added this Solution to the project in Angular the version of this...
asked by 13.07.2018 / 20:04
2
answers

Error creating ASP.Net Core 2.0 database - Keyword not supported: 'initial catalog

Hello, I'm trying to create a database with SQL Server using the Entity Framework Core, but it has the following error: Keyword not supported: 'initial catalog'. Does anyone know what it can be? { "ConnectionStrings": { "DefaultCon...
asked by 21.06.2018 / 04:02
2
answers

How to pass input value via post in asp.net core razor

I would like to know how to pass the value typed in an input to a Post method in PageModel. No cshtml: <div class="col-sm-6"> <label asp-for="Tickets.Identificador" class="control-label"></label> <input asp-for=...
asked by 18.06.2018 / 21:48
2
answers

asp.net core 2.0 authentication with cookies

I'm doing an authentication using cookies following the examples Custom Authentication in ASP.Net-Core Creating a simple login in ASP.NET Core 2 using Authentication and Authorization (NOT Identity) I was able to do, already checkin...
asked by 12.06.2018 / 14:53
2
answers

Return of a List From View to the Controller - Asp.Net Core

I have a viewmodel called Profile, in this viewmodel there is a ListProperties property and a string - title. public class PerfilViewModel { [Key] [DisplayName("Código")] public int Id { get; set; } [Required(ErrorMessage = "O...
asked by 27.03.2018 / 22:50
1
answer

Doubt in the VerifyUserTokenAsync method of Asp.Net Core Identity

Asp.Net Core Identity I have a question regarding VerifyUserTokenAsync If the user forgets the password, I'll provide a page to indicate the email and send a url that has the UserId and Token (by default): private async Task Esque...
asked by 28.02.2018 / 17:13
0
answers

Client question for a webapi

I have a slight doubt ... it concludes a webapi in asp.net core, is already all tested and everything, however, I have raised a doubt ... It includes a new project next to this api, in order to be the client that will consume such api and wanted...
asked by 15.11.2017 / 02:01
1
answer

Error sending a route to the same api / Controller / Action in a WebApi

I'm having the following error, I perform the following operation: // POST: api/Funcionario/AddFuncionario [HttpPost("AddFuncionario")] public IActionResult AddFuncionario([FromBody] Funcionario Func) { if(Func == n...
asked by 13.11.2017 / 16:14
0
answers

Problem uploading Api web in Asp.net core using entity framework with postgresql

Hello! So I've mapped my classes to the bank, mirrored successfully, and started to build the features of my webservice. With this, I came across the following error:   InvalidOperationException: Unable to resolve service for type 'CadFuncionari...
asked by 13.11.2017 / 01:35