示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public async Task <DutySharedFile> GetShareAsync(int id)
 {
     return(await DutyShareFiles.Where(u => u.Id == id)
            .SingleOrDefaultAsync());
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dutyId"></param>
 /// <returns></returns>
 public async Task <List <DutySharedFile> > ToList(int dutyId)
 {
     return(await DutyShareFiles.Where(u => u.DutyId == dutyId)
            .ToListAsync());
 }