Questions tagged as 'asp.net-mvc'

3
answers

How to customize error pages in an ASP.NET MVC system?

How to display a friendlier page when an error occurs in my asp.net mvc application (and not that yellow page)?     
asked by 13.12.2013 / 17:29
3
answers

Remove Saturdays and Sundays from Calculation

I have a project where I work with project activities, my activities have a certain time to complete, but the project has to do the calculation only with administrative days. For example, an activity starts on 10/26/2015 (Monday) and its dura...
asked by 25.10.2015 / 19:22
3
answers

Master-detail in MVC C # with Razor

Personal I need to set up a master-detail master record. I've already researched and seen a few examples on the internet, however as I do for when the master is not registered, the details are stored temporarily for the general save save the mas...
asked by 10.03.2014 / 18:17
2
answers

What has changed from MVC4 to MVC5?

I have read some topics on the subject, some say it has changed very little, others say that it was very important changes. I would like to know your opinion on the subject, I currently do projects with WebForms so I do not have any knowledge ab...
asked by 02.12.2015 / 14:13
1
answer

Code First versus Database First?

I'm used to creating projects in ASP.NET MVC with Entity Framework Database First. From a modeling, the database and the system are created. However, I see a lot of programmers prefer Code First, where the database depends on the system. W...
asked by 10.11.2014 / 21:51
3
answers

Communication with PagSeguro

I need to make an application that communicates with the pagseguro. In other words, it makes the purchase, I send and then I need to automatically update the bank when I make the payment. Until I send it to the payer I have a notion. My qu...
asked by 07.10.2014 / 14:03
4
answers

Entity Framework foreign key

My domain: public class SBE_ST_CorpoDocente { public int Id { get; set; } public string Nome { get; set; } public virtual ICollection<SBE_ST_Curso> Cursos { get; set; } } public class SBE_ST_Curso { public int Id { get;...
asked by 11.08.2014 / 20:00
2
answers

Uploading Images

I'm trying to upload images to my application. I did a prototype of upload, only it does not show the image, but the ID or NAME of it. And I'm uploading to a folder I've created in my project. My questions are: How do I show this image?...
asked by 29.04.2014 / 15:27
3
answers

Which application layer is geared towards processing of broader and more complex business rules?

I have been reading some questions and answers about the MVC standard and I have seen that it is correct to treat business rules in the Controller layer, for example: Verify that a record already exists in the database before persisting i...
asked by 08.10.2014 / 01:41
1
answer

How to handle duplicate key error?

How do I handle duplicate key errors? I need to display message to user that "Item is already registered" Something like this: try{ //tenta inserir no Banco de Dados context.Produto.Add(_produto); context.SaveChanges(); }catch(exceç...
asked by 02.10.2015 / 01:26