I need to call a model + object in my table in view .. how can I add the variable TotalTime
and insert it in my table?
This is my code :
schoolinfo az = new schoolinfo();
var durer = 3;
var EstimationPrep = 20;
var TotalTime = durer * az.Location.Distance(point) + EstimationPrep;
var places = (from u in context.schoolinfo
orderby u.Location.Distance(point)
where u.Location.Distance(point) < DistanceMax
select u).Take(10);
var nearschools = places.ToList();
return View(nearschools);
Thanks