/// <summary> /// /// </summary> /// <param name="id"></param> /// <returns></returns> public async Task <DutySharedFile> GetShareAsync(int id) { return(await DutyShareFiles.Where(u => u.Id == id) .SingleOrDefaultAsync()); }
/// <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()); }