public Task <List <MaintenanceCostDefinition> > List(MaintenanceCostDefinitionSearchParams searchParams)
        {
            var taskResult = Task.Run(() =>
            {
                using (var context = new DbContext())
                {
                    var ctx = context
                              .MaintenanceCostDefinition
                              .ToList();

                    return(ctx);
                }
            });

            return(taskResult);
        }
 public Task <List <MaintenanceCostDefinition> > List(MaintenanceCostDefinitionSearchParams searchParams)
 {
     return(_maintenanceCostDefinitionRepository.List(searchParams));
 }