Beispiel #1
0
 private bool SaveIssueMemberRelation(int issueId, int userId, IssueMemberRelationType relationType, int createdById)
 {
     try
     {
         var issueMember = new IssueMember {
             MemberID = userId, IssueID = issueId, CreatedByID = createdById, RelationType = relationType.ToString()
         };
         var result = repo.SaveIssueMemberRelation(issueMember);
     }
     catch (Exception ex)
     {
         // to do : Log
         return(false);
     }
     return(true);
 }
 private bool SaveIssueMemberRelation(int issueId, int userId, IssueMemberRelationType relationType, int createdById)
 {
     try
     {
         var issueMember = new IssueMember { MemberID = userId, IssueID = issueId, CreatedByID=createdById, RelationType = relationType.ToString() };
         var result = repo.SaveIssueMemberRelation(issueMember);
     }
     catch(Exception ex)
     {
         // to do : Log
         return false;
     }
     return true;
 }