Questions tagged as 'asp.net-mvc'

1
answer

Error after View being called

I have a login screen with the following call when the user clicks the "log in" button $(document).ready(function(){ $("#formLogin").on('submit', function (e) { e.preventDefault(); var form = $(this); var mensagem =...
asked by 01.12.2017 / 13:27
1
answer

How to read data from a class

I have an api that when receiving the data fills a class, I want to do a while in this class tb_dados_api and tb_carrinho, get the data to write to the database, how could I do this? Thank you Here I am getting the data [HttpPost]...
asked by 08.12.2017 / 02:20
1
answer

Help with ASP MVC routes (3 routes for the same action)

I have a controler: public class imoveisController : Controller { public ActionResult Index(int idEstado = 0, int idCidade = 0, int[] idRegiao = null) { string IdEstado; string IdCidade; int[] IdRegiao;...
asked by 14.12.2017 / 20:38
1
answer

Predefined type 'System.ValueTuple'2' is not defined or imported

I'm using asp.net mvc and in my controller, I have the code below: [HttpGet] public JsonResult salvaItem(items item) { items oItem = new items() { address = item.address, bairro = item.bairro...
asked by 23.12.2017 / 14:29
1
answer

Send email to register form

I need a help from you guys, I have a form on my system, I need it when I register it, send an email to a user. When I click save, I enter this post to save the data. [HttpPost] public void EventosAdversos(EventosAdversos obj) { var hos...
asked by 17.11.2017 / 12:43
2
answers

Doubt with data feedback Asp.net API

I have a method that does the record insertion, after having inserted accurate return the id that was written, but is not returning the information. Thanks for the help. [HttpGet] [Route("consulta/InseriUsuario/{apiKey}/{userKey}/{...
asked by 24.10.2017 / 13:49
1
answer

PartialView relationships asp.net mvc 5

I'm having trouble creating the logging logic of models that has relationships between them. One exists only the reference, but in the other, the reference is of the List < > type. I created a partialview containing only the field...
asked by 09.11.2017 / 15:27
1
answer

EF6 MVC5 C # - How to keep filters with page via QueryString

Good afternoon, I have several pages where the user can filter through 5 different fields and when the user clicks on the search button of the form, which is configured with the GET method, the search is passed in the URL as QueryString, a va...
asked by 08.11.2017 / 19:44
1
answer

How to display domain validations and errors in a partial view modal bootstrap?

I'm using DDD and I have some validations in my domain that need to be done, however when I use ModelState.AddModelError and return my model and my PartialView, the form of my Partial does not remain in modal open. Instead, it displays an html p...
asked by 03.10.2017 / 07:50