ATS.Data.Model.CodeTable.GetById C# (CSharp) Метод

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

public static GetById ( int codeTableId ) : CodeTable
codeTableId int
Результат CodeTable
        public static CodeTable GetById(int codeTableId)
        {
            using (var context = new ATSCEEntities())
            {
                return context.CodeTables.Single(r => r.CodeTableId == codeTableId);
            }
        }