با سلام
این ارور میدونید برای چی هست
InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.Collections.Generic.List`1[Core.DTOs.Course.ShowCourseListItemViewModel]', but this ViewDataDictionary instance requires a model item of type 'System.Collections.Generic.IEnumerable`1[Core.DTOs.SocialNetworkViewModel]'.
میگه شما از ShowCourseListItemViewModel استفاده کردید ، نمیدونم چرا تداخل ایجاد شده
public IActionResult ShowFooter()
{
return PartialView(_context.SocialNetworks.Select(s => new Core.DTOs.SocialNetworkViewModel
{
LogoName=s.LogoName,
Url=s.Url
}));
}
@model IEnumerable<Core.DTOs.SocialNetworkViewModel>
این ها کدهایی که زدم
سلام
مدل ویو و مدل ارسالی همخوانی نداره