Hello everyone,
I'm working on MVC 5, there is a viewmodel class and contain a static list as the same class.
- public class PartnerProjectVM
- {
- public int idPartnerProject { get; set; }
- public string ProjectName { get; set; }
- public string ProjectDescription { get; set; }
- public static List
listPartnerProjectVM = new List(); - }
How can I check
- @model Reboxwebapp.Models.ViewModel.PartnerProjectVM
- @if (listPartnerProjectVM.Count() != null)
- {
- <div class="col-sm-3">
- <div>
- <a class="list-group-item active left-menu-head">Projects Lista>
- @foreach (var item in listPartnerProjectVM)
- {
- <a href="#" id="idProject" class="list-group-item" name="@item.idPartnerProject">@item.ProjectNamea>
- }
- div>
- div>
- }


Catcher WongRank #286 · 8.8K reputationPosted Mar 12, 2017, 9:03 PM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Mar 12, 2017, 9:13 PM EDT
Catcher WongRank #286 · 8.8K reputationPosted Mar 12, 2017, 9:32 PM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Mar 12, 2017, 9:36 PM EDT
Catcher WongRank #286 · 8.8K reputationPosted Mar 12, 2017, 9:45 PM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Mar 12, 2017, 10:21 PM EDT