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

1
answer

ASP.NET Core - Search for GET requests [closed]

I'm using ASP.NET Core 2.1 Web API and I need to perform searches for a certain type of field, ie on my front I can choose the field I want to do the search and my back end needs to get that value. [HttpGet] public ActionResult<ResponseResu...
asked by 30.07.2018 / 13:43
3
answers

return NotFound () Web Api c #

I need to return a specific message, where it has Get , but it is not working as expected and I tried to implement it separately but it always gives error . [ResponseType(typeof(pessoa))] [ActionName("GetCNPJCPF")] public IHttpActionRes...
asked by 02.07.2017 / 02:20
1
answer

Configure HTTPS in WebApi

I made a Web Service using WebApi MVC5, with Visual Studio 2017. It's working, but how do I use HTTPS instead of HTTP? Does anyone have any material I can research? I found some things but with WCF and not with Web Api.     
asked by 03.06.2017 / 16:06
1
answer

How to display in a listview data via web api?

I'm having trouble performing this task, I need to fetch data that is stored via mysql on a website and display them in my app that is being developed in Xamarin Forms , so I need to webservice . I have the following context:...
asked by 20.02.2018 / 00:19
2
answers

Post Send data, but webapi capture null

I'm getting this header from fiddler. POST http://localhost:8887/api/values HTTP/1.1 Host: localhost:8887 Proxy-Connection: keep-alive Content-Length: 352 Accept: */* Origin: http://localhost:8383 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW6...
asked by 11.01.2016 / 20:13
1
answer

Error calling a method in ASP.NET Web API and Ninject

I'm getting error when trying to call a method from a Web API. Method declaration in ApiController public class AcessoController : ApiController { [HttpGet] public UsuarioModel ValidarUsuario(string login, string senha, stri...
asked by 06.10.2016 / 20:33
1
answer

Edit screen does not load the data on the screen

When entering edit mode, the edit should be filled in and only the city dropdownlist comes. See me cshtml below. @model TreinamentoCrud.FuncViewModel.FuncionarioViewModel @{ ViewBag.Title = "EditVM"; } <h2>EditVM</h2> @usin...
asked by 13.08.2018 / 15:51
1
answer

Kendo ui chart with several graphs - Asynchronous

I have a screen that can have 1 or more graphics, so I'm using Kendo Ui chart, however today this screen is synchronous, however I'd like to switch to Asynchronous to get faster. I created the Graphics Id in HTML, creating a unique id for each g...
asked by 30.07.2018 / 15:04
1
answer

Bot Telegram without webhook

I am using the telegram Telegram bot to create a bot. I can already send messages, files, etc. I am creating commands for the "/ setcommand" bot and I want this command to do something, a routine, run a php script, js, etc. I saw in the docume...
asked by 27.09.2016 / 16:54
1
answer

Turning float or double into date within a lambda

In the BD it has a field with a float value, which is actually the number of days from the 28/12/1800 date, which the Clarion programming language stores. Well, I have a REST service that is consumed by an Android App. What happens is that I...
asked by 11.09.2017 / 17:27