using System; namespace Pinwheel.SCM { public static class ScmAwardFactory { public static T CreateAward(this ScmAwardContext context) where T : Award, new() { return new T { Timestamp = (context.Timestamp.HasValue ? context.Timestamp.Value : DateTime.Now), User = context.User }; } } }