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