6
Reply

Pass variable from controller to view

Benmakhlouf Saad

Benmakhlouf Saad

Jul 11 2016 8:21 AM
360
Hi,
I want to pass this varible "diff"  from controller to view (Razor)
 
TimeSpan diff = vacationRttDemand.EndDate - vacationRttDemand.BeginDate; 
 
and after passing , i want do display it ino label or labelfor
 
Thanks 

Answers (6)