Open Source Web Application Framework for ASP.NET Core
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.
 
 
 
 
 
 

30 lines
1.1 KiB

using AutoMapper;
using Volo.Abp.AutoMapper;
using Volo.Docs.Admin.Documents;
using Volo.Docs.Admin.Pages.Docs.Admin.Projects;
using Volo.Docs.Admin.Projects;
namespace Volo.Docs.Admin
{
public class DocsAdminWebAutoMapperProfile : Profile
{
public DocsAdminWebAutoMapperProfile()
{
CreateMap<CreateModel.CreateGithubProjectViewModel, CreateProjectDto>()
.Ignore(x => x.ExtraProperties);
CreateMap<EditModel.EditGithubProjectViewModel, UpdateProjectDto>()
.Ignore(x => x.ExtraProperties);
CreateMap<ProjectDto, EditModel.EditGithubProjectViewModel > ()
.Ignore(x => x.GitHubAccessToken)
.Ignore(x => x.GitHubRootUrl)
.Ignore(x => x.GitHubUserAgent)
.Ignore(x => x.GithubVersionProviderSource)
.Ignore(x => x.VersionBranchPrefix);
CreateMap<PullModel.PullDocumentViewModel, PullAllDocumentInput>();
CreateMap<PullModel.PullDocumentViewModel, PullDocumentInput>();
}
}
}