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
Schleid Alex
NA
361
47.8k
Create view from view model to show data from two table
Oct 16 2020 8:55 AM
I want to create a "Create view" to enter information for both employee and address from a single page... I have my employemodel and my addressmodel. I am creating an EmployeeViewModel like this
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
namespace
gpos.Models
{
public
class
EmployeeViewModel
{
public
EmployeeModel NewEmployeViewModel {
get
;
set
; }
public
AddressModel NewAddressViewModel {
get
;
set
; }
}
}
now in my controller create action I want to generate a view to show data from both employee and address... I know I must use the viewModel but still not clear for me. I would really appreciate some help, tutorial reference...
Thank you so much
Reply
Answers (
5
)
Interaction between ASP.NET and C++ executable
Inconsistent accessibility parameter:RestAPi in C#