Example #1
0
        public async Task UpdatePersonalAttribute(PersonalAttributeDto input)
        {
            var user = await GetCurrentUserAsync();

            user.PersonalAttribute = JsonConvert.SerializeObject(input.PersonalAttributes);
            await WorkScope.UpdateAsync(user);
        }
        private async Task CreatePersonalAtributes(DocX doc, PersonalAttributeDto personalAtributes)
        {
            string Headingtitle = "PERSONAL ATTRIBUTES";

            var p = doc.InsertParagraph(Headingtitle);

            p.StyleName = "Heading1";
            p.FontSize(12);
            p.Font("Times new roman");
            p.SpacingBefore(5);

            Formatting symbolFormatting = new Formatting();

            symbolFormatting.FontFamily = new Xceed.Document.NET.Font("Symbol");
            symbolFormatting.Size       = 10;

            char tick = (char)183;

            foreach (var atribute in personalAtributes.PersonalAttributes)
            {
                doc.InsertParagraph().Append(tick.ToString(), symbolFormatting).Spacing(15).Append($"{atribute}").FontSize(12).SpacingBefore(5).IndentationBefore = 20;
            }
        }