コード例 #1
0
 public void OnGet(int SelectedTypeID)
 {
     //Talks = talkData.GetTalksByType(SelectedTypeID);
     Talks        = talkData.GetTalksByName(searchTerm, SelectedTypeID);
     Type         = typeData.GetType(SelectedTypeID);
     userProfiles = accountData.GetAll();
 }
コード例 #2
0
        public async Task <List <AccountDto> > GetAll()
        {
            try
            {
                var result = await _iaccountdata.GetAll();

                return(result);
            }
            catch (Exception)
            {
                return(null);
            }
        }
コード例 #3
0
 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());
 }
コード例 #4
0
 public void OnGet(int blogTypeId)
 {
     blogs        = blogData.GetApproved(blogTypeId, searchTerm);
     userProfiles = accountData.GetAll();
     blogType     = typeData.GetType(blogTypeId).type;
 }
コード例 #5
0
        public AccountResponseDto GetAccount(string userId)
        {
            List <Account> accounts = _accountData.GetAll();

            return(_mapper.Map <AccountResponseDto>(accounts[0]));
        }
コード例 #6
0
 public void OnGet(int questionTypeId)
 {
     questions    = questionData.GetAllByName(searchTerm, questionTypeId);
     type         = typeData.GetById(questionTypeId);
     userProfiles = accountData.GetAll();
 }
コード例 #7
0
 public void OnGet()
 {
     Blogs        = blogData.GetAll().Where(b => b.approved == true).OrderByDescending(b => b.CreatedDate).Take(6);
     userProfiles = accountData.GetAll();
 }
コード例 #8
0
 public void OnGet()
 {
     Users = accountData.GetAll();
 }