Ejemplo n.º 1
0
 public RoleService(Miaow.Domain.Repository.IRolesRepository role)
 {
     if (role == null)
     {
         throw new ArgumentNullException("roleRespoitory is null");
     }
     roleRespoitory = role;
 }
Ejemplo n.º 2
0
        public UserRoleService(Miaow.Domain.Repository.IUserRoleRepository userRole,
            Miaow.Domain.Repository.IAdminUserRepository adminUser,
             Miaow.Domain.Repository.IRolesRepository roles)
        {
            if (userRole == null)
            {
                throw new ArgumentNullException("userRoleRepository is null");
            }
            if (adminUser == null)
            {
                throw new ArgumentNullException("adminUserRepository is null");
            }
            if (roles == null)
            {
                throw new ArgumentNullException("rolesRepository is null");

            }
            userRoleRepository = userRole;
            adminUserRepository = adminUser;
            rolesRepository = roles;
        }