private CustomTabDto MapCustomTabDto(Domain.CustomEntity.CustomTab customTab) { return(new CustomTabDto() { Id = customTab.Id, Caption = customTab.Name, IsVisible = customTab.IsVisible, CustomTemplateId = customTab.CustomEntityId, SortOrder = customTab.SortOrder ?? 1, IsOptional = customTab.IsOptional }); }
public async Task <CustomTabDto> AddCustomTemplateTab(CreateCustomTemplateTabRequest createCustomTemplateTabRequest) { var tab = new Domain.CustomEntity.CustomTab { Id = createCustomTemplateTabRequest.Id, Name = createCustomTemplateTabRequest.Caption, CustomEntityId = createCustomTemplateTabRequest.CustomTemplateId, IsArchived = false, IsDeleted = false, AddedBy = 1, AddedDate = DateTime.UtcNow }; var response = await _customTabRepository.AddAsync(tab); return(MapCustomTabDto(response)); }