Dynamic User Roles
This commit is contained in:
		
							
								
								
									
										15
									
								
								Oqtane.Server/Repository/Interfaces/IRoleRepository.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Oqtane.Server/Repository/Interfaces/IRoleRepository.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| using System.Collections.Generic; | ||||
| using Oqtane.Models; | ||||
|  | ||||
| namespace Oqtane.Repository | ||||
| { | ||||
|     public interface IRoleRepository | ||||
|     { | ||||
|         IEnumerable<Role> GetRoles(); | ||||
|         IEnumerable<Role> GetRoles(int SiteId); | ||||
|         Role AddRole(Role Role); | ||||
|         Role UpdateRole(Role Role); | ||||
|         Role GetRole(int RoleId); | ||||
|         void DeleteRole(int RoleId); | ||||
|     } | ||||
| } | ||||
| @ -6,10 +6,11 @@ namespace Oqtane.Repository | ||||
|     public interface ISiteUserRepository | ||||
|     { | ||||
|         IEnumerable<SiteUser> GetSiteUsers(); | ||||
|         IEnumerable<SiteUser> GetSiteUsers(int SiteId, int UserId); | ||||
|         IEnumerable<SiteUser> GetSiteUsers(int SiteId); | ||||
|         SiteUser AddSiteUser(SiteUser SiteUser); | ||||
|         SiteUser UpdateSiteUser(SiteUser SiteUser); | ||||
|         SiteUser GetSiteUser(int SiteUserId); | ||||
|         SiteUser GetSiteUser(int SiteId, int UserId); | ||||
|         void DeleteSiteUser(int SiteUserId); | ||||
|     } | ||||
| } | ||||
|  | ||||
							
								
								
									
										15
									
								
								Oqtane.Server/Repository/Interfaces/IUserRoleRepository.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Oqtane.Server/Repository/Interfaces/IUserRoleRepository.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| using System.Collections.Generic; | ||||
| using Oqtane.Models; | ||||
|  | ||||
| namespace Oqtane.Repository | ||||
| { | ||||
|     public interface IUserRoleRepository | ||||
|     { | ||||
|         IEnumerable<UserRole> GetUserRoles(); | ||||
|         IEnumerable<UserRole> GetUserRoles(int UserId); | ||||
|         UserRole AddUserRole(UserRole UserRole); | ||||
|         UserRole UpdateUserRole(UserRole UserRole); | ||||
|         UserRole GetUserRole(int UserRoleId); | ||||
|         void DeleteUserRole(int UserRoleId); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker