1234567891011121314151617 |
- using System.Web.Http;
- using iiie.Logs.DataAccess;
- using iiie.WebApiUtils.BusinessManager.Attributes;
-
- namespace iiie.WebApiUtils.BusinessManager
- {
- public static class WebApiUtils
- {
- public static void Config()
- {
- Logger.Config();
- GlobalConfiguration.Configuration.Filters.Add(new ExceptionLoggerAttribute());
- GlobalConfiguration.Configuration.Filters.Add(new CheckModelForNullAttribute());
- GlobalConfiguration.Configuration.Filters.Add(new ValidateModelStateAttribute());
- }
- }
- }
|