Esempio n. 1
0
        public static async Task <List <TicketHistory> > GetTicketHistory(IssueIndexerContext _context, List <uint> ticketIds)
        {
            var ticketHistory = await(from th in _context.TicketHistory
                                      where ticketIds.Contains(th.TicketId)
                                      select th).AsNoTracking().ToListAsync();

            return(ticketHistory);
        }
Esempio n. 2
0
        public static async Task <List <Comment> > GetTicketComments(IssueIndexerContext _context, List <uint> ticketIds)
        {
            var comments = await(from c in _context.Comments
                                 where ticketIds.Contains(c.TicketId)
                                 select c).AsNoTracking().ToListAsync();

            return(comments);
        }
Esempio n. 3
0
 public static async Task <bool> UserExists(IssueIndexerContext _context, uint userId)
 {
     return(await _context.Users.AnyAsync(e => e.Id == userId));
 }
Esempio n. 4
0
 public ProjectMembersController(IssueIndexerContext context)
 {
     _context = context;
 }
Esempio n. 5
0
 public TicketsController(IssueIndexerContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public UserRelationshipsController(IssueIndexerContext context)
 {
     _context = context;
 }
Esempio n. 7
0
 public CommentsController(IssueIndexerContext context)
 {
     _context = context;
 }
Esempio n. 8
0
 public UsersController(IssueIndexerContext context, UserManager <User> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }