Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "nitinrpatel"

Question

Hello,

There are Parent and Child table from which i fetch details and display on my Grid page. I Want to Sort my column which are not from my parent table but using belo code I got Some error.

public async Task<PagedResultDto<InvitationListDto>> GetInvitation(GetInvitationInput input)
        {
            var Invitation_List = _InstallerRepository
               .GetAll();

            var InvitationList = (from Inst in Invitation_List
                                  join Us in _userRepository.GetAll() on Inst.UserId equals Us.Id into Usjoined
                                  from Us in Usjoined.DefaultIfEmpty()
                                  where (Inst.UserId != 0 && Inst.IsApproved == 0)
                                  group Inst by Inst into instGrouped
                                  select instGrouped.Key);

            var resultCount = await InvitationList.CountAsync();
            var results = await InvitationList
                .AsNoTracking()
                .OrderBy(input.Sorting)
                .PageBy(input)
                .ToListAsync();

            var Invitation = results.MapTo<List<InvitationListDto>>();
            foreach (var item in Invitation)
            {
                item.CustName = _tenantRepository.GetAll().Where(p => p.Id == item.TenantId).Select(p => p.FullName).FirstOrDefault();
            }

            return new PagedResultDto<InvitationListDto>(resultCount, Invitation.MapTo<List<InvitationListDto>>());
        }
Question

I want to bind my all users(with the specific role) in the dropdown. how it is possible...? i have attached code with that i have bind other dropdown and now i want to bind user table in dropdown.

public ListResultDto<InstSuburbListDto> GetSuburb()
        {
            var suburb = _postCodeRepository
               .GetAll()
               .OrderByDescending(p => p.Id)
               .ToList();

            return new ListResultDto<InstSuburbListDto>(suburb.MapTo<List<InstSuburbListDto>>());
        }

Hello,

Can you tell me the procedure , how can I use my Host Table data in Tenant database ?, Because right now I am getting a blank table.

Question

Hi! Can you provide me an example for image upload. I tried Changeing Profile picture, but I don't want this uploader. Kindly provide with some different picture uploader or send an example.

I want to insert data in multiple tables i.e Parent And Child table(Some Fields of Parent Table with Parent Referance) how is it possible in asp.net zero.?

On edit page dropdown , When i select a value from dropdown , it doesn't gets bind with the dropdown, and the value is shown as "NOT SELECTED" sometimes, but also the value is shown in textbox. Even the value is shown in Backend. I am also attaching Screenshots of the same for your furthur reference.

Showing 11 to 16 of 16 entries