Files
Microsoft.SelfService.Porta…/Interfaces/ITemplateInterface.cs

29 lines
1.2 KiB
C#

using Microsoft.SelfService.Portal.Core.API.Models;
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
{
public interface ITemplateInterface
{
ICollection<TemplateModel> GetTemplates();
bool AddTemplateById(TemplateModel template);
bool EditTemplateById(TemplateModel template);
bool DeleteTemplateById(TemplateModel template);
TemplateModel GetTemplateById(Guid Id);
bool CheckTemplateById(Guid Id);
TemplateModel GetTemplateByName(string Name);
bool CheckTemplateByName(string Name);
ICollection<TemplateVersionModel> GetTemplateVersions(Guid templateId);
TemplateVersionModel? GetTemplateVersionById(Guid templateId, Guid versionId);
TemplateVersionModel? GetPublishedTemplateVersion(Guid templateId);
bool AddTemplateVersion(Guid templateId, TemplateVersionModel version, bool publish);
bool PublishTemplateVersion(Guid templateId, Guid versionId, string? publishedBy);
bool CheckTemplateVersionById(Guid templateId, Guid versionId);
bool CheckTemplateVersionByVersion(Guid templateId, string version);
bool SaveChanges();
}
}