TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sunil Sudhansu
1.4k
307
32.8k
How to add value in model from repoasitory model
Feb 9 2019 3:19 AM
public class EmployeeMasterListViewModel
{
public List<EmployementDetailViewModel> 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
Reply
Answers (
1
)
How to download your free books?
An error occur while adding data to datatable using loop