Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0117: 'Junki.ViewModels.PhotoListCategoryItemViewModel' does not contain a definition for 'Convert'

Source Error:


Line 21:                 foreach (var item in Model.Photos)
Line 22:                 {
Line 23:                 @Html.Partial(MVC.Home.Views.Partials.PhotoListCategoryItem, PhotoListCategoryItemViewModel.Convert(item.Key, item.Value, Model.listType))
Line 24: 
Line 25:                     if (Model.Photos.ToList().IndexOf(item) % 3 == 2)

Source File: c:\home\site\wwwroot\Views\Home\PhotosByCategory.cshtml    Line: 23






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0