Questions tagged as 'asp.net-mvc-5'

1
answer

How to get the percentage of Postgre database storage space through EF Core in Asp.net Core

I need to create in my application a feature that checks the database ( PostGreSQL ) for the percentage of storage space used to be displayed on a chart. I have a generic repository, and I thought about creating a GetStorage() fu...
asked by 19.03.2018 / 00:07
1
answer

Reload JQGrid by passing filter parameters

This is basically to cause the JQGrid function to receive parameters type (date: {}), by events .change and to update the grid. I have a grid that is loaded along with document, but I need to implement some conditions and filters. For...
asked by 03.04.2018 / 12:50
0
answers

Return a PartialView in ASP.NET MVC [duplicate]

When returning a PartialView my action can both have an ActionResult as a PartialViewResult / p> public PartialViewResult Franquias() { return PartialView("_Franquias"); } Or public ActionResult Franquias() { return Partia...
asked by 06.12.2017 / 16:55
1
answer

Can the CrossCutting layer recognize my Domain layer?

My question is quite simple. Can my CrossCutting layer know my Domain layer? since the Repository layer knows that it is both inside the Infrastructure Layer. I'm sorry for the question, as I'm still new to the concept of DDD, I'm using th...
asked by 15.12.2017 / 23:38
0
answers

ASP.NET MVC 5: Linking two models to the view

I have the following scenario: AgendaViewModel.cs public class AgendaViewModel { [HiddenInput(DisplayValue = false)] public int Id { get; set; } [HiddenInput(DisplayValue = false)] public int ClienteId { get; set; } //...
asked by 24.11.2017 / 15:21
2
answers

but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable'1 [WebApplication4.Models.modelExample]

I can not perform enumeration, I have already switched to another information reception in the View but I do not know how to correct it, I checked other forms in StackOverflow but I did not understand. Model: namespace WebApplication4.Mod...
asked by 25.10.2017 / 15:06
1
answer

When executing POST passing object via URI of a WebAPI, the object arrives as null in the method

I have a few days of headaches with this problem I have an MVC5 fronted application and it sends an object to another WebAPI application in a Save () method. See the code of my Frontend application that sends the object to the WebAPI public...
asked by 16.09.2017 / 19:52
1
answer

How do I create a DropDownList for MVC5 ASP.NET

Hello, I'm having difficulty making a Dropdownlist, I have 3 classes an Entities to have relationship with the bank, a Genre that is associated with the Work class. [Table("Generos")] public class Genero { [Key] public int GeneroId { g...
asked by 21.09.2017 / 04:03
1
answer

Problem when executing method to insert new User using ASP.NET MVC with HTML and RAZOR

I have a problem when executing a request to insert a new user, I do not know what I need to do now to finish my request, By clicking the register button nothing happens below are my HTML code and controller (Controller Name: UserController)...
asked by 21.08.2017 / 20:52
0
answers

E_DEFAULT_LOCALE_NOT_DEFINED: Default locale has not been defined. - Globalize

When I type 1 number in the input this error appears:    E_DEFAULT_LOCALE_NOT_DEFINED: Default locale has not been defined. Image: Ihavetriedmanywaysandnothing.Hereisthecode:Model:publicclassTeste{[DataType(DataType.Date)][Display(Nam...
asked by 07.08.2017 / 22:16