Hi Is it possible to access the different model properties for same view
My VisitorsViewModel model
public DateTime FromDate { get; set; }
public DateTime ToDate { get; set; }
My View_VisitorsForm Model
C#
public System.Guid VisitingID { get; set; }
public string Employee { get; set; }
public string CustomerName { get; set; }
public Nullable<System.DateTime> VisitingDate { get; set; }
public string StartTime { get; set; }
public string EndTime { get; set; }
public string SpendTime { get; set; }
public string POVisit { get; set; }I want to create 5 fields in view FromDate,Todate,CustomerName,Povisit ,StartTime,EndTimeEmployee. But all these fields properties in different models. Is it possible to access two different model properties in same view? i tried to explain my issue as per my level best. please any one give me solution.
Advance thanks..
Saillesh PawarRank #537 · 4.5K pointsPosted Apr 3, 2016, 4:45 AM EDT
Sneha KRank #3,184 · 446 pointsPosted Apr 3, 2016, 4:53 AM EDT
Saillesh PawarRank #537 · 4.5K pointsPosted Apr 3, 2016, 4:59 AM EDT
public DateTime FromDate { get; set; }
public DateTime ToDate { get; set; } public string ContactPerson { get; set; } public string Description{ get; set; }public string Employee { get; set; } public string CustomerName { get; set; } public Nullable<System.DateTime> VisitingDate { get; set; } public string StartTime { get; set; } public string EndTime { get; set; } public string NextAppointment{ get; set; }