public string loadProduct(string branchType, string productType, string codeId) { string result = ""; int i = 1; var m = db.sp_web_loadPrice(branchType, productType, codeId); foreach (var item in m.ToList()) { result += "<tr class='detail-rows removeprice" + item.PriceId.ToString() + "' id='" + item.Id.ToString() + "' title='Click để xem chi tiết'>"; result += "<td class='center childrows'></td>"; result += "<td>" + item.BranchTypeName + "</td>"; result += "<td>" + item.CodeId + "</td>"; result += "<td>" + item.ProductCode + "</td>"; result += "<td>" + item.ProductName + "</td>"; result += "<td class='right'>" + string.Format("{0:0,0}", item.Price.Value) + "</td>"; result += "<td>" + item.FromDate + "</td>"; result += "<td>" + item.EndDate + "</td>"; result += "</tr>"; i++; } return(result); }