BLL.ActiveMulticastSession.GetFromPort C# (CSharp) Метод

GetFromPort() публичный статический Метод

public static GetFromPort ( int port ) : Models.ActiveMulticastSession
port int
Результат Models.ActiveMulticastSession
        public static Models.ActiveMulticastSession GetFromPort(int port)
        {
            using (var uow = new DAL.UnitOfWork())
            {
                return uow.ActiveMulticastSessionRepository.GetFirstOrDefault(x => x.Port == port);
            }
        }