You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WebApiUtils.cs 513B

12345678910111213141516
  1. using System.Web.Http;
  2. using iiie.Logs.DataAccess;
  3. namespace iiie.WebApiUtils.BusinessManager
  4. {
  5. public static class WebApiUtils
  6. {
  7. public static void Config()
  8. {
  9. Logger.Config();
  10. GlobalConfiguration.Configuration.Filters.Add(new ExceptionLoggerAttribute());
  11. GlobalConfiguration.Configuration.Filters.Add(new CheckModelForNullAttribute());
  12. GlobalConfiguration.Configuration.Filters.Add(new ValidateModelStateAttribute());
  13. }
  14. }
  15. }