Skip to main content
1 de 4
user avatar
user avatar

Assim:

try {
    ...
}
catch (DbUpdateException e) {
    TempData["Mensagens"] = e.InnerException.GetBaseException().Message;
}
user6026