Click here to Skip to main content
15,899,754 members

Comments by sahmed3 (Top 34 by date)

sahmed3 26-Apr-16 8:34am View    
Yes,
sahmed3 21-Apr-16 1:26am View    
Hi richard,
Do you have any idea how to loop with XML attributes
sahmed3 20-Apr-16 7:38am View    
Hi,
Basically i wanted to show colon(:) after my Title.
sahmed3 20-Apr-16 6:41am View    
hi saraswati,

Thanks for your reesponse, i have tried it now differently to pass it with in actionresult also i have updated in solution
sahmed3 18-Apr-16 1:01am View    
Hi now i have modified my methods to return a string , i'm getting data in my controller now i need to bind in my view, im new to MVC could you pls help me in that

public ActionResult Manage()
{
return View("Index", GetStoreReports());
}
public LogisticsInfoViewModel GetStoreReports()
{

var generalReportAccess = new LogisticsInfoViewModel();

var storeProfileList = _storeProfileRepository.GetGeneralInfoReport();

XDocument xDoc=new XDocument();

var logisticsModel = from x in xDoc.Descendants("logistics")
select new LogisticsInfoViewModel
{
FreightRate = (string)x.Element("freightrate"),
OffShoreDelivery = (string)x.Element("offshoredelivery")
};

return null;
}

How can i bind my controller's XML data to my view from the above code approach kindly suggest