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

1
answer

JSON Handling with Asp.net Web API

Hello, I am putting together an educational application where I have a course calendar. In this project I'm using a jquery calendar, and it uses json to mount dates that have scheduled event. The plugin ( w3widgets.com/responsive-calendar/ )...
asked by 22.12.2014 / 18:41
1
answer

Update User Role ASP.NET Identity

Hello everyone, I'm finding it difficult to update the user role when updating my data, my roles are being filled through a ViewBag in my get from my controller and I'm retrieving the new ID in the post from my controller through the request. fo...
asked by 14.12.2018 / 21:53
1
answer

Asp.Net Core WebApi returning object list

I'm trying to return a list of a "Plan" Template which has a list of "Expenses", returning only the list of plan works, but when I add to return the list of expenses of an error in javascript. "Failed to load resource: net :: ERR_SPDY_PROTOCOL...
asked by 04.11.2018 / 00:38
1
answer

Object can not be converted to dbnull in other types

Good evening, gentlemen. I am doing a user registration in college work and at logar this error appears. How can I resolve? privateUsuarioMapear(DataRowregistro){varusuario=newUsuario();usuario.Nome=Convert.ToString(registro["NOME"]);...
asked by 24.10.2018 / 17:58
1
answer

Extraction of data other than two lists of objects [closed]

I'm working on a WEB API and need to remove some of the values contained in one list and that are contained in another. To be better illustrated would be the equivalent of removing the data from a list where the user in question has already regi...
asked by 16.08.2018 / 03:08
1
answer

How to send a post request using Axios and Asp.net Core Web API?

I am making a request with axios with the verb post , but I can not. Note > With the verb get I can make the request. Object cliente: { nomeCompleto: '', cpf: '', email: '', endereco: { cep:...
asked by 05.07.2018 / 13:32
2
answers

C # - Filter Include - Context [duplicate]

In the method below, I return some records from my EntityIntermexRegras entity, where it has relation to the .INCLUDE ("Emails and Parameters"). Since EF does not allow filtering in .INCLUDE, would you like to check how to filter these entitie...
asked by 06.06.2018 / 22:35
1
answer

API problem after doing deploy

My api is not working after deploy to the server, it is returning:    404 - File or directory not found.      The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. By doing some te...
asked by 23.05.2018 / 23:36
1
answer

Apis Rest for e-commerce

I'm trying to set up an e-commerce with a friend and we're thinking of putting together an api rest to access the database and creating a website and an application to consume it. As this is an e-commerce, I would like to know if the Rest APIs s...
asked by 24.05.2018 / 23:59
1
answer

Post Method is not running on Postman

Creating a POST method and testing for Postman , I can not access the Controller of this POST . I did not implement a lot yet, but I should stop at Break if, of course, it was working. Controller [Route("api/[controller]")] public clas...
asked by 20.06.2018 / 16:12