using Oqtane.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Oqtane.Services
{
///
/// Manage s assigned to a specific
///
public interface IUserRoleService
{
///
/// Get all s on a
///
/// ID-reference to a
///
Task> GetUserRolesAsync(int siteId);
///
/// Get all s on a
///
/// ID-reference to a
/// ID-reference to a
///
Task> GetUserRolesAsync(int siteId, int userId);
///
/// Get all s on a
///
/// ID-reference to a
/// Name reference a
///
Task> GetUserRolesAsync(int siteId, string roleName);
///
/// Get all s on a
///
/// ID-reference to a
/// ID-reference to a
/// Name reference a
///
Task> GetUserRolesAsync(int siteId, int userId, string roleName);
///
/// Get one specific
///
/// ID-reference to a
///
Task GetUserRoleAsync(int userRoleId);
///
/// Save a new
///
///
///
Task AddUserRoleAsync(UserRole userRole);
///
/// Update a in the database
///
///
///
Task UpdateUserRoleAsync(UserRole userRole);
///
/// Delete a in the database
///
///
///
Task DeleteUserRoleAsync(int userRoleId);
}
}