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