public override void Update(BadgeResult e) { if (habitRepository == null) { return; } Log ev = e as Log; if (ev == null) { return; } habitRepository.AddLog(ev.User_id, ev.Habit_id, DateTime.Now); }
public override void Update(BadgeResult e) { if (badgeRepository == null) { return; } EpicComeback ev = e as EpicComeback; if (ev == null) { return; } Badge b = BadgeFactory.Create(ev.User_id, _giver.Give(), _giver.Desc()); badgeRepository.AddBadge(b); }
public override void Update(BadgeResult e) { if (badgeRepository == null) { return; } Dominating ev = e as Dominating; if (ev == null) { return; } Badge b = BadgeFactory.Create(ev.User_id, _giver.Give(), _giver.Desc()); badgeRepository.AddBadge(b); }