Beispiel #1
0
 public bool Equals(HelpdeskStatesQuery other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(this.OnlyActive == other.OnlyActive);
 }
Beispiel #2
0
        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);
        }