public APIProfileController(IDataStore dataStore, IUserProfileStore userProfileStore, IUserStore <PhiUser> userStore) { this._dataStore = dataStore; this._userProfileStore = userProfileStore; this._userStore = userStore; this._provider = new OpenWeatherMapProvider.DataProvider(); // new YahooProvider.DataProvider(); }
public async Task <ActionResult <UserProfile> > Post([FromServices] IUserProfileStore store, [FromBody] UserProfile card) { card.ID = null; // Users are horrible people, don't let them play hookie with the service var cardCreated = await store.StoreCardAsync(card); return(Created(Url.RouteUrl("GetCard.v1", new { id = cardCreated.ID }), cardCreated)); }
public TigerController(IDataStore dataStore, ISuggestionService suggestionService, IUserProfileStore userProfileStore) { this._dataStore = dataStore; this._suggestionService = suggestionService; this._provider = new Phi.OpenWeatherMapProvider.DataProvider(); this._userProfileStore = userProfileStore; }
public async Task <ActionResult <UserProfile> > Get([FromServices] IUserProfileStore store, string id) { var card = await store.GetCardAsync(id); if (card == null) { return(NotFound()); } return(Ok(card)); }
public AccountManager(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ILogger <AccountManager> logger, RoleManager <IdentityRole <Guid> > roleManager, IUserProfileStore userProfileStore, IConfiguration configuration) { _userManager = userManager; _signInManager = signInManager; _logger = logger; _roleManager = roleManager; _userProfileStore = userProfileStore; _configuration = configuration; }
public UserProfileController(IDataStore dataStore, IUserStore <PhiUser> userStore, IUserProfileStore userProfileStore) { this._dataStore = dataStore; this._userStore = userStore; this._userProfileStore = userProfileStore; }
public APIDressRoomController(IDataStore dataService, IUserProfileStore userProfileStore, IUserStore <PhiUser> userStore) { this._dataStore = dataService; this._userProfileStore = userProfileStore; this._userStore = userStore; }
public SetProfileCommandHandler(IUserProfileStore accountStore, IMapper mapper) { this.accountStore = accountStore; this.mapper = mapper; }
public UserProfileController(IUserContext userContext, IUserProfileStore userProfileStore) { _userContext = userContext; _userProfileStore = userProfileStore; }
public AccountController(IUserStore <PhiUser> userStore, IUserProfileStore userProfileStore, IUserEmailStore <PhiUser> emailStore) { UserManager = new PhiUserManager(userStore); this._userProfileStore = userProfileStore; this._emailStore = emailStore; }
public async Task <ActionResult> Delete([FromServices] IUserProfileStore store, string id) { await store.RemoveCardAsync(id); return(NoContent()); }
public async Task <ActionResult <UserProfile> > Put([FromServices] IUserProfileStore store, string id, [FromBody] UserProfile value) { value.ID = id; return(Ok(await store.StoreCardAsync(value))); }
public async Task <ActionResult <IEnumerable <UserProfile> > > GetByUser([FromServices] IUserProfileStore store, string email) { return(Ok(await store.GetUserCardsAsync(email))); }
public Handler(IFleetStore fleetStore, IUserProfileStore userProfileStore) { this.fleetStore = fleetStore; this.userProfileStore = userProfileStore; }
public Handler(IFleetStore fleetStore, IMapper mapper, IUserProfileStore userProfileStore) { this.fleetStore = fleetStore; this.mapper = mapper; this.userProfileStore = userProfileStore; }
public UserProfileManager(IUserProfileStore userProfileStore, IHttpContextAccessor httpContextAccessor) { _userProfileStore = userProfileStore; _httpContextAccessor = httpContextAccessor; }
public HomeController(IDataStore dataService, ISuggestionService suggestionService, IUserProfileStore userProfileStore) { this._dataStore = dataService; this._suggestionService = suggestionService; this._userProfileStore = userProfileStore; }