IUserService is inacessibel due to it ptotection level
Hi there.
I'm trying to access to IUserService on a controller without sucess.
I try to replicate the tutorial on a controller that inherits from UmbracoApiController.
First off all in tutorial point to namespaces:
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Core.Services;
But I can only get access using Cms, like this:
using Umbraco.Cms.Core;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Services;
After that, when I try to get access to UserService, I get an error, UserService is inacessibel due to it ptotection level.
Any ideas what I've been doing wrong?
Regards,
L.A.
IUserService is inacessibel due to it ptotection level
Hi there. I'm trying to access to IUserService on a controller without sucess. I try to replicate the tutorial on a controller that inherits from UmbracoApiController.
First off all in tutorial point to namespaces:
But I can only get access using Cms, like this:
After that, when I try to get access to UserService, I get an error, UserService is inacessibel due to it ptotection level.
Any ideas what I've been doing wrong? Regards, L.A.
just inject IUserService to constractor
is working on a reply...