I have the route of my area
context.MapRoute(
"Cadastro_default",
"{Empresa}/Cadastro/{controller}/{action}/{id}",
new { empresa = Empresa.GetEmpresa(), action = "Index", id = UrlParameter.Optional }
);
But it does not...
I created an ASP.NET MVC 5 application by adding the following code snippets:
Web.config
<system.web>
<customErrors mode="On">
<error statusCode="404" redirect="~/Erro/Erro404"/>
</customErrors>
</system...
In my project I currently have 3 tables: Students, Occurrences and Users. In them I have views and controllers .
So far so good. My relationships are: Students & Occurrences (1, N) / Occurrences & Users (N, 1).
My problem is that in ac...
When I create a project MVC5 the Visual Studio automatically creates a site for me with a login option via Facebook, Google ... I just need to enable "Startup.Auth.cs" .
But it does the direct login and I do not know how t...
I was watching a video lesson on ASP.NET MVC, when I see the Fluent Mapping of the Entity Framework for the first time.
Soon I came to doubt.
Which of the two is best recommended? Fluent Mapping or Data Annotations ?
I really liked...
I have my following properties:
public ETipoPessoa TipoPessoa {get;set;}
public string CnpjCPF {get;set;}
public enum ETipoPessoa {
Fisica,
Juridica
}
I have this condition, if TypePerform = Physical, I need to pass an annotation...
Is there any way to reduce the size of the photo before uploading? Note: It is not just a resize, because some test I did was resized and did not decrease the size of the photo.
I would like to check if the upload is of type image and Dec...
I mapped a new route on my site like this:
routes.MapRoute(
"PaymentEdit",
"Payment/{type}",
new { controller = "Contributor", action = "Payment" },
new { type = UrlParameter.Optional }
);
My...
I'm going through a problem I've never seen before. I'm hoping someone has seen and can help me.
I'm working with asp.net mvc 5, and sending a form via post to my controller.
My model:
<div class="col-md-6">
<form action="@U...