Questions tagged as 'asp.net-web-api'

1
answer

ASP.NET Identity and Web API - Problem to register new user

I have a Web API project and I'm using Identity to manage user accounts, in my controller it looks like this: public async Task<IHttpActionResult> Register([FromBody]RegisterDto model) { if (!ModelState.IsValid) { return...
asked by 19.05.2015 / 22:42
0
answers

flow to login with web api with AD users returning token by profile [closed]

We are putting together an Api for our internal systems, we enter into a paradigm of the best way to create a login of users validated by AD returning token with profile being the Profile the group that the user is in AD, we are trying to draw t...
asked by 26.08.2015 / 22:57
1
answer

Problem in api call in React JS

I created a webapi in ASP.NET Core, and I need to consume it using React, the web api works normally, if I use curl or Postman among others, it works normally. The problem starts when I'm going to use React, when I try to make any requests for m...
asked by 04.10.2018 / 14:46
2
answers

Angular Controller does not render in my Index

I can not render a script on my _Layout page. I put it in the _Layout, next to the Bundles declarations and in the Chrome debug, the Aba Network comes with 304 status. I placed it at the top of the page (_Layout) and it also did not work. I remo...
asked by 05.07.2016 / 21:36
1
answer

Lambda or Linq brings me all the field and not just those of the expression

Just for learning, understand the section. I made a lambda from a bank with only 6 fields, like this: public List<LiberacaoDTO> getAutoriza(int idorcamento) { var lista = contexto.Liberacoes .Where(m => m.IdOrcamen...
asked by 27.08.2017 / 23:00
2
answers

Facilities for client, WCF or Web API? [closed]

I need to create a Web service to insert data on a database that needs validation to ensure data integrity. I have as a requirement, to facilitate the use of my "clients". So, should I opt for WCF (SOAP) or Web API (Rest)?     
asked by 11.06.2014 / 19:17
1
answer

Decimal field displays a .0 on the screen

I have a CPF field that is decimal (11). Well, when I show on the grid the CPF it looks like this: 12345678911.0, how can I remove the .0? My ViewModel public class FuncionarioViewModel { [Key] public int id { get; set;...
asked by 13.08.2018 / 20:30
1
answer

How to add an already built view to a controller with asp.net core 2.0

I created a view (Razor Page) in an Asp.Net Core 2.0 project. As I build it from scratch and now I need to assign a controller to it. How do I do this?     
asked by 27.06.2018 / 18:43
3
answers

How can I do "Inner Join"

    
asked by 29.06.2018 / 10:55
3
answers

Error cast while running rest service

I'm having this error:    The 'Qtde' property on 'ItemsLib' could not be set to a   'System.Double' value. You must set this property to a non-null value   of type 'System.Single'. What can cause this? [Table("ITENSLIB")] public cla...
asked by 08.09.2017 / 19:19