Service update, import changes from web_portal

This commit is contained in:
Claudio Boggian
2023-06-21 10:38:57 +02:00
parent 39fa4dedf3
commit bb99cef33c
101 changed files with 4266 additions and 3044 deletions
@@ -1,9 +1,9 @@
using console_spo_utils.Constants;
using console_spo_utils.Interfaces.Services;
using library_spo_utils.Constants;
using library_spo_utils.Interfaces.Services;
using Microsoft.Extensions.Logging;
using Microsoft.SharePoint.Client;
namespace console_spo_utils.Services;
namespace library_spo_utils.Services;
internal class ProjectYearService : IProjectYearService
{
@@ -18,7 +18,7 @@ internal class ProjectYearService : IProjectYearService
this.projectService = projectService;
}
public void CreateList(string listTitle, ClientContext ctx)
public void CreateList(string projName, string listTitle, ClientContext ctx)
{
try
{
@@ -66,7 +66,7 @@ internal class ProjectYearService : IProjectYearService
foreach (var fn in Fields.SiteFields)
{
var Fields = siteField.Fields.GetByTitle(fn);
var Fields = siteField.Fields.GetByInternalNameOrTitle(fn);
list.Fields.Add(Fields);
}
@@ -114,7 +114,7 @@ internal class ProjectYearService : IProjectYearService
CreateViewList(list, ctx);
projectService.BuildWebParts();
projectService.BuildWebParts(projName);
Console.WriteLine($"> Impostata come HomePage di '{viewCreation.Title}'");