public void OnGet(int SelectedTypeID) { //Talks = talkData.GetTalksByType(SelectedTypeID); Talks = talkData.GetTalksByName(searchTerm, SelectedTypeID); Type = typeData.GetType(SelectedTypeID); userProfiles = accountData.GetAll(); }
public async Task <List <AccountDto> > GetAll() { try { var result = await _iaccountdata.GetAll(); return(result); } catch (Exception) { return(null); } }
public IActionResult OnGet(int SelectedTalkId) { talk = talkData.GetTalkById(SelectedTalkId); if (talk != null) { RedirectToPage("./Talks/NotFound"); } comments = commentData.GetAll(SelectedTalkId); Comment.TalkId = SelectedTalkId; Comment.userId = User.Claims.First(c => c.Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier").Value; userProfiles = accountData.GetAll(); return(Page()); }
public void OnGet(int blogTypeId) { blogs = blogData.GetApproved(blogTypeId, searchTerm); userProfiles = accountData.GetAll(); blogType = typeData.GetType(blogTypeId).type; }
public AccountResponseDto GetAccount(string userId) { List <Account> accounts = _accountData.GetAll(); return(_mapper.Map <AccountResponseDto>(accounts[0])); }
public void OnGet(int questionTypeId) { questions = questionData.GetAllByName(searchTerm, questionTypeId); type = typeData.GetById(questionTypeId); userProfiles = accountData.GetAll(); }
public void OnGet() { Blogs = blogData.GetAll().Where(b => b.approved == true).OrderByDescending(b => b.CreatedDate).Take(6); userProfiles = accountData.GetAll(); }
public void OnGet() { Users = accountData.GetAll(); }