using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Common; public partial class Mobile_Default : Page { protected void Page_Load(object sender, EventArgs e) { Trace.Warn("IsAuthenticated", Page.User.Identity.IsAuthenticated.ToString()); if (Page.User.Identity.IsAuthenticated) Trace.Warn("Name", Page.User.Identity.Name); using (var db = new DataModel()) { var openPickups = db.Workloads.Where(c => c.WorkloadStatusId == 1).ToList(); if (openPickups.Count <= 0) return; var companies = openPickups.Select(s => s.Customer).Distinct().ToList(); CompaniesList.DataSource = companies; CompaniesList.DataBind(); } } }