public bool Equals(HelpdeskStatesQuery other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(this.OnlyActive == other.OnlyActive); }
public async Task <IList <HelpdeskState> > ExecuteAsync(HelpdeskStatesQuery query) { var states = await this._centronService.GetHelpdeskStatesAsync(); if (query.OnlyActive) { states = states .Where(f => f.IsDeactivated == false) .ToList(); } return(states); }