get higest number in MVC code example Example: get higest number in MVC int maxAge = context.Persons.Select(p => p.Age).DefaultIfEmpty(0).Max();