ASP.NET MVC si multiple HandleError

Daca puneti pe controller HandleError si vreti pe o metoda sa interceptati HandleError pentru o anumita exceptie, nu uitati sa puneti order=0 pentru HandleError de pe controller.

[InfovalNew.HandleErrorAndLog(Order=0)]        
public class istoricController : Controller

{

[InfovalNew.HandleErrorAndLog(View = "invaliddate",ExceptionType = typeof(infoObj.InvalidDateTime))]
public string valoarebnr(string year, string month, string day,string idmoneda)
        {}

}

Leave a Reply

Your email address will not be published. Required fields are marked *