public async Task <List <Model.survey.Survey> > GetAllByUserRoleId(UserRole userRole) { return(await KoohTajrobeDbContext.Set <Model.survey.Survey>() .Where(x => x.userRole.Id == userRole.Id) .ToListAsync()); }
public async Task InsertSurveyRow(SurveyRow surveyRow) { await KoohTajrobeDbContext.Set <SurveyRow>().AddAsync(surveyRow); }
public async Task Insert(Model.survey.Survey survey) { await KoohTajrobeDbContext.Set <Model.survey.Survey>().AddAsync(survey); }
public async Task <List <Model.survey.Survey> > GetAll() { return(await KoohTajrobeDbContext.Set <Model.survey.Survey>().ToListAsync()); }
public SurveyRepository(KoohTajrobeDbContext koohTajrobeDbContext) : base(koohTajrobeDbContext) { }
public async Task <SurveyRowDetail> GetSurveyRowDetail(SurveyRowDetail surveyRowDetail) { return(await KoohTajrobeDbContext.Set <SurveyRowDetail>() .FirstOrDefaultAsync(x => x.Id == surveyRowDetail.Id)); }
public async Task InsertSurveyRowDetails(List <SurveyRowDetail> surveyRowDetails) { await KoohTajrobeDbContext.Set <SurveyRowDetail>().AddRangeAsync(surveyRowDetails); }
public async Task InsertSurveyRowDetail(SurveyRowDetail surveyRowDetail) { await KoohTajrobeDbContext.Set <SurveyRowDetail>().AddAsync(surveyRowDetail); }
public async Task <Model.survey.Survey> GetAllSurveyRowBySurveyId(Model.survey.Survey survey) { return(await KoohTajrobeDbContext.Set <Model.survey.Survey>().Include(x => x.surveyRows) .FirstOrDefaultAsync(x => x.Id == survey.Id)); }