Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
the following code is for class
public class EmployeeViewModel
{
public string EmployeeName { get; set; }
public string Salary { get; set; }
public string SalaryColor { get; set; }
}

following code for creations of list but i am getting the following error

C#
public class EmployeeListViewModel
{
    public List<EmployeeViewModel><employeeviewmodel> Employees { get; set; }
    public string UserName { get; set; }
}

pls help me i am new to mvc
Posted
Comments
kinjal11 15-Jul-16 3:08am    
public List<employee> GetEmployees() how to solve this

1 solution

Instead of
C#
public List<Employeeviewmodel><employeeviewmodel> Employees { get; set; }

Use
C#
public List<Employeeviewmodel> Employees { get; set; }
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900