public static ITarget LoadTarget(TargetsModel target, string name) { Check(target); return(new Target() { Name = target.Name ?? name, Description = target.Description, OccurEvery = TimeSpan.FromMinutes(target.RepeatAfterAmountMinutes ?? 1) }); }
private static void Check(TargetsModel model) { throw new NotImplementedException(); }