Questions tagged as 'controller'

1
answer

Passing Date by Ruby on Rails parameter

I'm trying to pass a date clicked as a parameter in order to load another view and I can not do it. The idea is to list all bookings made on the selected day. Controller class ReservasController < ApplicationController ... def search...
asked by 03.08.2017 / 03:11
2
answers

Doubts with the ASP.NET MVC view system (C #)

I'm developing an image bank with Microsoft ASP MVC ASP.NET, and I have a question, studying the competition, I realized that when you click on an image within the search result, or they pass a parameter to the view so : Sofarsogood,Icandoit,bu...
asked by 24.05.2017 / 22:11
2
answers

Input submit does not call ActionResult

I'm having trouble calling ActionResult using input type="submit" and passing the model data. I did a test using ActionLink but the Model is not sent. Could someone give a light? Follow the code: Controller: [HttpPost] p...
asked by 17.05.2017 / 22:05
1
answer

Controller Web API Standardization

I would like to know the following. Imagine the following URIs: (1) api / orders (2) api / orders / 10 (3) api / orders / 10 / items The URI (1) and (2) I am sure they would be inside a class called RequestsController, since to (3), I...
asked by 12.04.2017 / 19:58
1
answer

Error between directive and controller

Files:    index.html    controllers / control.js    directives / directiva.js    directives / botao.html * I have a function called $ scope.change (age) = function () {....}; in control.js * in the directive I have templateUrl: "botao.h...
asked by 18.02.2017 / 00:56
1
answer

How to take a Domain Entity method to higher layers

Hello, I have the following domain entity. public class Cliente{ [Key] public string CPF{get; set;} public string Nome{get; set;} //Outras propriedades public void Sacar(Conta conta, decimal valor){ conta.Saldo -...
asked by 28.09.2015 / 02:36
1
answer

Processing 3.2.1, Game Control Plus library, java exception

Good! I'm studying Games & Apps Development and in our first half we are making a game in Processing. In my game I'm using a PS4 command with the help of the Game Control Plus library. If I press a button enough times, my game crashes a...
asked by 15.11.2016 / 02:16
0
answers

String to Date conversion via an html form

I'm having problems converting String to Date, here are the codes: Event: @Entity(name = "Evento") @Table(name = "evento_table") public class Evento { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) @Column private Long id; @Colum...
asked by 24.04.2016 / 13:43
1
answer

Button with link in MVC5 is not working

I created a popup in an mvc5 project (Razor) and it is not working the link that when I click the button it would go to another page but it is not working I will post the code here below. Code: <div id="banner_popup" style="display:none...
asked by 05.07.2016 / 20:45
0
answers

Run controller from an external site

I have the following problem / question: I have Wordpress installed and CodeIgniter also. In CodeIgniter I have to do a function that adds +1 in the database when a category is seen in wordpress . Then the following code...
asked by 03.06.2015 / 07:45