Ejemplo n.º 1
0
 public void CreateUserSupport(Support support, ISupportInvitationService supportInvitationService)
 {
     var oldUser = SupportRepository.GetMany(g => g.UserId == support.UserId && g.SupportId == support.SupportId);
     if (oldUser.Count() == 0)
     {
         SupportRepository.Add(support);
         SaveSupport();
     }
     supportInvitationService.AcceptInvitation(support.GoalId, support.UserId);
 }
Ejemplo n.º 2
0
 public void CreateSupport(Support Support)
 {
     SupportRepository.Add(Support);
     SaveSupport();
 }