ATS.Data.Model.CodeTable.GetById C# (CSharp) Method

GetById() public static method

public static GetById ( int codeTableId ) : CodeTable
codeTableId int
return CodeTable
        public static CodeTable GetById(int codeTableId)
        {
            using (var context = new ATSCEEntities())
            {
                return context.CodeTables.Single(r => r.CodeTableId == codeTableId);
            }
        }