public class EmployeeMasterListViewModel
{
public List EmployementDetail { get; set; }
}
EmployeeMasterListViewModel EMPLIST = new EmployeeMasterListViewModel();
var employeedetail = _DbContext.Proc_GetAllEmployeeMasterList(EmployeeID).ToList();
foreach (var item in employeedetail)
{
EmployementDetailViewModel obj = new EmployementDetailViewModel();
obj.EmployeeID = item.EmployeeID;
obj.EmployeeCode = item.EmployeeCode;
EMPLIST.EmployementDetail.Add(obj);
} How to add value in model from repoasitory model


Salman BegRank #284 · 8.8K reputationPosted Feb 8, 2019, 10:46 PM EST