Beispiel #1
0
        public ISecurityOwnOrganization CheckEntity <T>(T entity, IUnitOfWork unitOfWork) //where T : IRoleBased, IEntityIdentifier
        {
            ISecurityOwnOrganization result = null;
            var checker = resolveManager.Resolve <IUserOrganizationChecker <T> >(true);

            if (checker != null)
            {
                var organizations = userOrganizationService.GetAllUserOrganizations(unitOfWork);
                result = checker.CheckEntity(entity, unitOfWork, organizations);
            }
            return(result);// ?? new VmSecurityOwnOrganization { Id = entity.Id };
        }
 /// <summary>
 /// Get all user organizations
 /// </summary>
 /// <returns></returns>
 protected List <Guid> UserOrganizations()
 {
     return(userOrganizationService.GetAllUserOrganizations().ToList());
 }
Beispiel #3
0
 internal IList <Guid> GetAllUserOrganizations(IUnitOfWork unitOfWork)
 {
     return(userOrganizationService.GetAllUserOrganizations(unitOfWork));
 }