public override int GetHashCode() { return(new object[] { MinimumLogins, MaximumLogins }.GetCollectionHashCode() ^ IndustryIds.GetCollectionHashCode() ^ Employers.GetHashCode() ^ Recruiters.GetHashCode() ^ VerifiedOrganisations.GetHashCode() ^ UnverifiedOrganisations.GetHashCode()); }
private void MonthChart(IEnumerable <ProductivityModel> productivityModels) { var dataSeries = new DataSeriesCollection(); var recruiters = Recruiter == null ? Recruiters : Recruiters.Where(r => r.Id == Recruiter.Id); foreach (var recruiter in recruiters) { var items = productivityModels.Where(p => p.RecruiterFullName == recruiter.FullName); if (items.Any()) { var series = new DataSeries { LegendText = recruiter.FullName, RenderAs = RenderAs.Column }; IEnumerable <DataPoint> dataPoints; dataPoints = !string.IsNullOrEmpty(Week) ? items.GroupBy(i => i.Week, (k, g) => new DataPoint { YValue = g.Count(), AxisXLabel = k }) : items.GroupBy(i => i.Month, (k, g) => new DataPoint { YValue = g.Count(), AxisXLabel = k }); foreach (var point in dataPoints) { series.DataPoints.Add(point); } dataSeries.Add(series); } } ChartSource = dataSeries; if (ChartUpdated != null) { ChartUpdated(this, EventArgs.Empty); } }
public ActionResult PostNewRecruiter(Recruiters newRecruiter) { Db.Recruiter.Add(newRecruiter); Db.SaveChanges(); return(Ok(newRecruiter)); }