I am having issues when passing Guid as the data source for edit Frame.
When I populate the Guid directly it works fine but while binding it from model am getting an error message
Code:
@using Sitecore.Mvc.Extensions
@{
var itemid = @Model.PropertyGuid;
}
@foreach (Sitecore.Data.Items.Item listItem in @Model.DiningServiceItem)
{
using (Html.EditFrame("@itemid", "DininglEvents", null, null, null, null))
{
<li> @listItem.Name</li>
}
}
Error message:
An error occurred. [Log message: Could not get item with id: from database:master]
Any idea how I can fix this?
Thanks