Posts by Rafael • 139 points
11 posts
-
0
votes1
answer78
viewsQ: In Clean Architecture, which layer receives the business rules and logic specific to a system?
Speaking of Clean Architecture, we usually see examples of a basic CRUD system, but that do not show where are located the codes of controllers that need a complexity a little more than simply a…
-
0
votes1
answer127
viewsQ: Implementing an API for a website’s business rules: is it an exaggeration? Or is it good practice?
In some places that I worked with C# MVC I saw two ways to program the business model of a web system, being them: coding inside the Controller of the web application; creating a web API Rest and…
-
2
votes1
answer92
viewsQ: Add HTML Properties to an input via Razor
When I create a field input-type-text Via Razor, I do something like this: @Html.TextBox("nomeTxt", null, new { @class = "form-control", @placeholder = "Exemplo de placeholder", @type = "text" })…
-
-1
votes1
answer437
viewsQ: Is it possible to create a 100% cloud service to sign documents with digital certificate?
My idea, well summarized, is to upload a file in the browser, where the browser will ask the user to select the certificate and thus the site will return the signed document. Li in this topic a way…
-
1
votes1
answer82
viewsQ: ASP.NET MVC - Label does not display because of "dot" character at the end of the name parameter
I had a problem where a label didn’t appear on the page I was creating with Razor. I discovered that the problem was because the "string name" parameter had a dot at the end. I wonder if this is an…
asp.net-mvcasked Rafael 139 -
2
votes1
answer85
viewsQ: Display link icon only according to screen size
On my pages, I have several links like the following: <a href="/Home/Index" class="btn-sm btn-success" role="button"> <i class="glyphicon glyphicon-home"></i> Home </a> It…
-
1
votes1
answer282
viewsQ: EF6 MVC5 C# - How to maintain filters with Querystring page
Good afternoon, I have several pages where the user can filter through 5 different fields and when the user clicks on the form search button, which is configured with the GET method, the search is…
-
3
votes1
answer346
viewsQ: How to perform a Count in multiple columns?
I’d like to make a COUNT using LINQ / LAMBDA, but I’m having difficulties. Can help me? The idea is to reproduce the following query: SELECT Conta, Tipo, Documento, Nome, COUNT(0) AS Qtde FROM…
-
1
votes1
answer234
viewsQ: C# MVC5 EF - How not to lose data after Modelstate validation?
below my question if you can help. I use C# ASP.NET MVC 5 with Entity Framework. I have classes that represent below respectively a customer registration and an email registration: public partial…
-
3
votes1
answer699
viewsQ: How to use Viewmodel in MVC 5 C# with Entity Framework?
I’m trying to learn how to use the concept of Viewmodel, so I did a basic project, but I’m having difficulties. I have the following models: Person id guy document Physique id name surname document…
-
3
votes2
answers1193
viewsQ: ASP . NET MVC 5 - Dropdownlist with Modelstate?
I am developing a registration system using MVC5 with DAO, but there were some doubts that I could not resolve. I have a table where I register Projects and another one where the types of Projects…