Questions tagged as 'controller'

1
answer

Error retrieving record from the DB in the Data layer for use in an ActionResult within the ASP Controller. Net MVC 5

I am running a billing system in ASP .Net MVC with 3 layers. I just need to record the detail of the sale, because the sale already inserts me. In the case of the detail I extract all the fields that are required to insert the detail, except t...
asked by 25.07.2017 / 06:33
1
answer

How to send a procedure stored in the controller in ASP.NET MVC and Entity framework

I have this code in my controller and my stored procedures are already mapped. I access the database through Entity framework and the edmx is defined. I would like to know what the code is like to send (use) my stored procedure to...
asked by 22.06.2017 / 18:32
1
answer

Procedures stored in Controller Entity framework

I have a stored procedure that edits a record, the date field is with getdate() , I'm trying to use that procedure in my controller but I get an error.    No argument corresponding to the formal parameter has been given   required a...
asked by 23.06.2017 / 17:17
1
answer

Error with slice select2.js

I'm having trouble filling out a combobox with Select2 I have my JS: $("#comboplatos").select2({ placeholder: "Type to select a sponsor", minimumInputLength: 3, allowClear: true, style: "display: inline-block", width:...
asked by 19.06.2017 / 08:07
1
answer

table ratings laravel

I have a table and its respective Qualification model, where I have 8 notes, average, exam, final grade. In my controller I calculate the average with the notes other than 0, and the final grade. function guardarCalificacion(CalificacionReques...
asked by 28.05.2017 / 01:51
0
answers

scope for laravel of a relationship

I have a registration table and a student-related table, one to many, and I want to make a scope in the enrollment model in such a way that I look for the student's routine, at the moment I have a scope by date. How could I make that scope? this...
asked by 26.05.2017 / 00:10
1
answer

AngularJS - Can not find API driver

Colleagues, I have the following problem: when wanting to access from a controller js to an API controller just to bring a list of users, the console sends me error 404. Service that accesses the corresponding controller, passing as parameter...
asked by 15.02.2017 / 17:07
2
answers

Render html with angular attributes from the angle controller

I'm currently trying to render an html from a method in the angle handler like this: me.func1 = function (codDep) { var str = ''; angular.element(document.querySelector('#ligas')).remove(); str += '<div id="ligas">';...
asked by 19.01.2017 / 18:40
3
answers

Sub-workshops for controllers in Laravel 4.1

I want to organize my code a bit and I want to put all the controllers belonging to the administrator in a folder inside, for example: controllers/administrador/LogingController.php and on the route I specify it in the following way: Rout...
asked by 27.02.2017 / 00:09
1
answer

relations in laravel 3 tables

I have 3 tables: Student (id) Course (id, name) Enrollment (id, student_id, course_id) When I login with a student in his account I receive his data with: $alumno = Alumno::find(auth('alumno')->user()->id); I tried to get...
asked by 19.06.2017 / 08:00