25 lines
587 B
C#
25 lines
587 B
C#
namespace LaaProduction.Personalization.Repositories.Interfaces
|
|
{
|
|
using LaaProduction.Personalization.Models;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public interface IRolesRepository
|
|
{
|
|
IEnumerable<Role> All();
|
|
|
|
IEnumerable<String> All(Int16 employeeId);
|
|
|
|
void Delete(Int16 employeeId);
|
|
|
|
void Insert(Int16 employeeId, IEnumerable<String> roles);
|
|
|
|
void Insert(String role, IEnumerable<Int16> employees);
|
|
|
|
void Delete(String role);
|
|
|
|
IEnumerable<KeyValuePair<Int32, Int32>> UsersRolesCount();
|
|
}
|
|
}
|