Tag .net

[Solved] Function is not working [closed]

You get zero orders because List<OrderInfo> orders = CommerceLibAccess.GetOrdersByRecent(recordCount); is returning an empty list. It is returning an empty list because: return ConvertDataTableToOrders (GenericDataAccess.ExecuteSelectCommand (comm)); is returning an empty data-table. You’ll have to dig into your data table to figure…

[Solved] How To Download HTML File Name As A String?

Explanation about the error: WebClient.DownloadFileAsync public void DownloadFileAsync( Uri address, string fileName ) It doesn’t return anything (void) and you are passing this to listsext! Ofcourse you will get an Exception: Cannot implicitly convert type ‘void’ to ‘string’ What you…

[Solved] Linq: help me to make this work

You should group all person skills by person id, and then select only those groups, which contain both given category and sub category: unitOfWork.PersonSkillsRepository.GetAll() .GroupBy(p => p.PersonId) .Where(g => g.Any(p => p.IdCategory == ids.IdCategory) && g.Any(p => p.IdSubCategory == ids.IdSubCategory))…