System.Collections.Generic.List<ShowCompanyWith> q = (from i in dbconnect.tblMaterialTenderAnnouncePrices
join b in dbconnect.tblMaterialGroups on
i.MaterialGroupId equals b.id
select new ShowCompanyWith()
{
companyId = i.companyId.ToString(),
companyName = ReturnCompanyName(i.companyId),
price =
calculateContractPrice(i.companyId)
.ToString()
}).ToList()