public OperationResult<List<CurrentConsumption>> GetCurrentConsumption(CurrentConsumptionFilter item) { return SafeOperationCall(() => { var rubezhService = RubezhServiceFactory.Create(TimeSpan.FromMinutes(10)); using (rubezhService as IDisposable) return rubezhService.GetCurrentConsumption(RubezhServiceFactory.UID, item); }, "GetCurrentConsumption"); }
public OperationResult<List<CurrentConsumption>> GetCurrentConsumption(Guid clientUID, CurrentConsumptionFilter item) { return SafeOperationCall(clientUID, () => RubezhService.GetCurrentConsumption(clientUID, item), "GetCurrentConsumption"); }
public OperationResult<List<CurrentConsumption>> GetCurrentConsumption(Guid clientUID, CurrentConsumptionFilter filter) { using (var databaseService = new RubezhDAL.DataClasses.DbService()) { return databaseService.CurrentConsumptionTranslator.Get(filter); } }