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); }
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); }
public static async Task <bool> UserExists(IssueIndexerContext _context, uint userId) { return(await _context.Users.AnyAsync(e => e.Id == userId)); }
public ProjectMembersController(IssueIndexerContext context) { _context = context; }
public TicketsController(IssueIndexerContext context) { _context = context; }
public UserRelationshipsController(IssueIndexerContext context) { _context = context; }
public CommentsController(IssueIndexerContext context) { _context = context; }
public UsersController(IssueIndexerContext context, UserManager <User> userManager) { _context = context; _userManager = userManager; }