public OperationResult<List<DayInterval>> GetDayIntervals(Guid clientUID, DayIntervalFilter filter) { using (var databaseService = new RubezhDAL.DataClasses.DbService()) { return databaseService.DayIntervalTranslator.Get(filter); } }
public RubezhAPI.OperationResult<List<DayInterval>> GetDayIntervals(DayIntervalFilter filter) { return SafeOperationCall(() => { var rubezhService = RubezhServiceFactory.Create(TimeSpan.FromMinutes(10)); using (rubezhService as IDisposable) return rubezhService.GetDayIntervals(RubezhServiceFactory.UID, filter); }, "GetDayIntervals"); }
public static DayInterval GetSingle(Guid? uid) { if (uid == null) return null; var filter = new DayIntervalFilter(); filter.UIDs.Add(uid.Value); var operationResult = ClientManager.RubezhService.GetDayIntervals(filter); return Common.ShowErrorIfExists(operationResult).FirstOrDefault(); }
public OperationResult<List<DayInterval>> GetDayIntervals(Guid clientUID, DayIntervalFilter filter) { return SafeOperationCall(clientUID, () => RubezhService.GetDayIntervals(clientUID, filter), "GetDayIntervals"); }
public static IEnumerable<DayInterval> Get(DayIntervalFilter filter, bool isShowError = true) { var operationResult = ClientManager.RubezhService.GetDayIntervals(filter); return Common.ShowErrorIfExists(operationResult, isShowError); }