Questions tagged as 'mvc'

0
answers

Mvc dbSetReserve does not contain a definition for getAll ()

I created this method, however the error described above appears to me, does anyone know a possible solution? public IEnumerable<Reserva> GetBookingsByRoomId(int Id) { HotelEntities db = new HotelEntities(); var allBookings = db....
asked by 11.06.2018 / 10:52
0
answers

how to define routes in MVC

Good evening .. I have the following Controller: HomController with Action: Login Clicking on the Enter My URL button is as follows: link I would like the URL not to be displayed this way, but: link I've already tried to...
asked by 02.06.2018 / 23:42
0
answers

Get Model value and pass it to a class in Controller C # /. Net

I wanted to get a value from the model and pass it inside a class that is inside the controller. Here's my class on Controller I wanted the variable "MyVariavel" to receive the value of my model public class classeTeste { p...
asked by 23.05.2018 / 19:04
1
answer

Access one module from another

Well, I'm learning how to implement MVC with the Express framework, but I came across the following situation in my app.js file: var express = require('express'); var consign = require('consign'); var bodyParser = require('body-parser'); var...
asked by 22.05.2018 / 15:31
1
answer

Alert upon entering condition in the Asp Net MVC Controller

Good evening, I tried to look in other posts and I did not find the answer. I have a Controller in my Asp Net MVC project that has this condition: if (resultado == null) { ModelState.AddModelError("", "Usuário ou senha i...
asked by 10.05.2018 / 05:11
0
answers

MVC Upload Image and send the database

Good Night I'm making an online store for a course and would like to know if anyone could help me create image upload to the Database. The purpose is to add in the admin page and appear in the index. Page where the product is created:...
asked by 15.05.2018 / 10:04
1
answer

Using cache during user session

I'm using OutputCache in an asp.net mvc5 application to cache a list in my application this way: [(Duration = 60, VaryByParam = "none")] public ActionResult Index() {} I just need to take advantage of this cache while the user is logged int...
asked by 09.05.2018 / 16:32
0
answers

Currency in Site Asp Net MVC

I created my website in default MVC asp net and I noticed that when I squeeze the local site in my machine with Windows-PTBR it appears the currency of the site (that is an e-commerce) like Real R $. By hosting my website on a gringa webhost, I...
asked by 03.05.2018 / 01:33
0
answers

Create shortcut automatically on android desktop

I have an application in ASP.NET MVC with bootstrap, access by Smartphone normally, but would like to know if it is possible to access the main screen create a shortcut on the android desktop?     
asked by 30.04.2018 / 20:51
0
answers

What is the best way to pass data from the model database to the view?

Hello everyone. I have some questions: We assume that I want to display a table of files that are registered in the database. In my FilesController.php, I have: public function carregarLista($status){ $this->arquivosModel->set...
asked by 02.05.2018 / 18:34