public static Models.ActiveMulticastSession GetFromPort(int port) { using (var uow = new DAL.UnitOfWork()) { return uow.ActiveMulticastSessionRepository.GetFirstOrDefault(x => x.Port == port); } }