Hi,
I have a codings in controller as shown below....
public ActionResult SearchItem()
{
return View(_objItemService.BuildSearchItemView());
}
[HttpPost]
public ActionResult SearchItem(ItemViewModel objtext)
{
if ({
return View("SearchItem");
}
return View(_objItemService.BuildSearchItemView());
}
And i created a list in servicelayer like this coding shown below:
public IList BuildSearchItem(ItemViewModel text)
{
IList lkitem = new List();
foreach (var item in _objItemRep.GetItem())
{
lkitem.Add(new ItemViewModel() { ItemId = item.ItemId, ItemTitle = item.ItemTitle, ItemDesc = item.ItemDesc });
}
return lkitem;
}
I got error in controller actionresult searchlinkeditem in the line of if condition that i mentioned within three forward slash....
(
The above coding shows the error like Cannot implicity convert type system.Collections.generic.Ilist to bool......How to solve it
Cany anyone give me a solution....