31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
using Microsoft.SelfService.Portal.Core.API.Models;
|
|
|
|
namespace Microsoft.SelfService.Portal.Core.API.Interfaces
|
|
{
|
|
public interface IServiceInterface
|
|
{
|
|
ICollection<ServiceModel> GetServices();
|
|
|
|
bool AddServiceById(ServiceModel service);
|
|
bool EditServiceById(ServiceModel service);
|
|
bool DeleteServiceById(ServiceModel service);
|
|
|
|
ServiceModel GetServiceById(Guid Id);
|
|
bool CheckServiceById(Guid Id);
|
|
|
|
ServiceModel GetServiceByName(string Name);
|
|
bool CheckServiceByName(string Name);
|
|
|
|
ICollection<ServiceRoleDefinitionModel> GetRoleDefinitionsByServiceId(Guid serviceId);
|
|
ServiceRoleDefinitionModel GetRoleDefinitionById(Guid roleDefinitionId);
|
|
bool AddRoleDefinition(ServiceRoleDefinitionModel roleDefinition);
|
|
bool EditRoleDefinition(ServiceRoleDefinitionModel roleDefinition);
|
|
bool DeleteRoleDefinition(ServiceRoleDefinitionModel roleDefinition);
|
|
bool CheckRoleDefinitionById(Guid roleDefinitionId);
|
|
bool CheckRoleDefinitionKey(Guid serviceId, string key, Guid? excludeRoleDefinitionId = null);
|
|
|
|
bool SaveChanges();
|
|
|
|
}
|
|
}
|