public void AcceptInvitation(int id, string userid) { var supportInvitation = _supportInvitationRepository.Get(g => (g.GoalId == id && g.ToUserId == userid)); if (supportInvitation != null) { _supportInvitationRepository.Delete(supportInvitation); SaveSupportInvitation(); } }
public void AcceptInvitation(int id, string userid) { var SupportInvitation = SupportInvitationRepository.Get(g => (g.GoalId == id && g.ToUserId == userid)); if (SupportInvitation != null) { SupportInvitationRepository.Delete(SupportInvitation); //SupportInvitation.Accepted = true; //SupportInvitationRepository.Update(SupportInvitation); SaveSupportInvitation(); } }