6
Answers

Pass variable from controller to view

Benmakhlouf Saad

Benmakhlouf Saad

8y
379
1
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)