public bool SomeMethod() { string key = _someotherService.GetKey(); string val = _someotherService.GetValue(); var user = _userServiceFactory.GetUserService(key, val); return(false); }
public Users(IUserServiceFactory userServiceFactory, IUserImageServiceFactory userImageServiceFactory, IHostingEnvironment environment) { UserService = userServiceFactory.GetUserService(); UserImageService = userImageServiceFactory.GetUserImageService(); Environment = environment; }