Questions tagged as 'asp.net-mvc'

1
answer

Map Api port in an MVC project

I created an MVC project and within an API. I need to get the API when I upload the project to (F5). Example, I created a service that is a GET in my Type table. How can I map the API to be able to get inside an MVC controller? My pr...
asked by 08.08.2018 / 19:54
1
answer

Doubt about using model in view

I have an entity called Request. I created in the Model folder a class that loads the Orders, called GetPedidos . Well, when I created the controller, I added a view to the Action Index . When building the view, I had her use the GetPedidos...
asked by 08.12.2017 / 17:05
1
answer

Get input values in html for object in ASP.NET MVC [closed]

I wanted to know how do I get the information from the data entered in the html input to create an object by my MVC template and save it to the database. Note: I already have all the model classes, the interface classes, I just need to mount the...
asked by 19.08.2017 / 22:32
1
answer

insert background image in mvc application

asked by 30.11.2017 / 13:05
2
answers

How does the flow of a Web Service work?

I need to develop a web service , and so your main idea is client-server communication. But do not understand how this would be done using the MVC architecture and using the C # language, do you have a need for a local server with Apache?  ...
asked by 20.04.2016 / 02:40
1
answer

Return query with more than 1 parameter in WebAPI

I have the code below, how would the correct route look? How can I test the call //http://localhost:1608/api/ApiCidade/consulta/clienteLoginSenha/ [HttpGet] // [Route("consulta/clienteLoginSenha/{email:long}/{senha:long}...
asked by 06.11.2015 / 18:54
1
answer

How and what better way to calculate a net value [closed]

These days I came across a problem that I can not solve and I do not know much where it starts. I have these 4 fields in my system, where, if the user infuses the percentage discount, the system automatically shows to the user, in the f...
asked by 01.09.2017 / 22:39
2
answers

how to send input value to control using asp.net querystring? [closed]

I have this code in View @using (Html.BeginForm("VisualizaJogoParaExclusao", "Relatorios", FormMethod.Post)) { <div class="row"> <div class="span12"> <input class="form-control input-...
asked by 31.12.2015 / 01:46
1
answer

Error in Edit MVC .NET [closed]

I'm having an error when I edit my profile, my Physical Model is as PartialView , the following error occurs: Attaching an entity of type 'Projeto.Models.Fisica' failed because another entity of the same type already has the same primary...
asked by 15.01.2016 / 16:31