Service update, import changes from web_portal
This commit is contained in:
@@ -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}'");
|
||||
|
||||
Reference in New Issue
Block a user