public void Configuration(IAppBuilder app)
{
AutoMapperConfig.RegisterMappings(Assembly.Load(Constants.DataTransferModelsAssembly));
Mapper.CreateMap<AttachmentRequestModel, Attachment>();
Mapper.CreateMap<ProjectRequestModel, Project>();
Mapper.CreateMap<CategoryRequestModel, Category>();
Mapper.CreateMap<ProjectWorkLogRequestModel, WorkLog>();
DatabaseConfig.Initialize();
app.UseCors(CorsOptions.AllowAll);
ConfigureAuth(app);
var config = new HttpConfiguration();
WebApiConfig.Register(config);
app.UseWebApi(config);
}