public List<Session> GetAllByClassificationAndCoachAndCoachingProcess(ESessionClassification classification, Person person, Guid idCoacingProcess) { var coach = person.User.FirstOrDefault().Coach.FirstOrDefault(); if (coach != null) return _context.Session.Where(x => x.EvaluationCoach.FirstOrDefault().IdCoach == coach.Id && x.Classification == classification && x.IdCoachingProcess == idCoacingProcess).ToList(); return new List<Session>(); }
public List<Session> GetAllByClassificationAndCoachee(ESessionClassification classification, Person person) { var coachee = person.User.FirstOrDefault().Coachee.FirstOrDefault(); if (coachee != null) return _context.Session.Where(x => x.EvaluationCoachee.FirstOrDefault().IdCoachee == coachee.Id && x.Classification == classification).ToList(); return new List<Session>(); }
public List <Session> GetAllByClassificationAndCoachAndCoachingProcess(ESessionClassification classification, Person person, Guid idCoacingProcess) { var coach = person.User.FirstOrDefault().Coach.FirstOrDefault(); if (coach != null) { return(_context.Session.Where(x => x.EvaluationCoach.FirstOrDefault().IdCoach == coach.Id && x.Classification == classification && x.IdCoachingProcess == idCoacingProcess).ToList()); } return(new List <Session>()); }
public List <Session> GetAllByClassificationAndCoachee(ESessionClassification classification, Person person) { var coachee = person.User.FirstOrDefault().Coachee.FirstOrDefault(); if (coachee != null) { return(_context.Session.Where(x => x.EvaluationCoachee.FirstOrDefault().IdCoachee == coachee.Id && x.Classification == classification).ToList()); } return(new List <Session>()); }
public CreateSessionCommand(CoachingProcess coachingProcess, string theme, User user, DateTime date, TimeSpan startTime, TimeSpan? endTime, ESessionClassification classification, string observation, ICollection<Job> job) { this.Theme = theme; this.Date = date; this.StartTime = startTime; this.EndTime = endTime; this.Classification = classification; this.CoachingProcess = coachingProcess; this.User = user; this.Observation = observation; this.Job = job; }
public UpdateSessionCommand(Guid id, CoachingProcess coachingProcess, string theme, User user, DateTime date, TimeSpan startTime, TimeSpan? endTime, ESessionClassification classification, string observation, ICollection<Job> job,ICollection<EvaluationCoach> coach, ICollection<EvaluationCoachee> coachee) { this.Id = id; this.Theme = theme; this.Date = date; this.StartTime = startTime; this.EndTime = endTime; this.Classification = classification; this.CoachingProcess = coachingProcess; this.User = user; this.Observation = observation; this.Job = job; this.Coach = coach; this.Coachee = coachee; }
public List<Session> GetAllByClassification(ESessionClassification classification) { return _context.Session.Where(SessionSpecs.GetAllByTypeSession(classification)).ToList(); }
public static bool ChangeClassificationScopeIsValid(this Session session, ESessionClassification classification) { return(AssertionConcern.IsSatisfiedBy( AssertionConcern.AssertArgumentNotNull(session.Classification, Errors.ClassificationIsRequired) )); }
public List<Session> GetAllByClassificationAndCoacheeAndCoachingProcess(ESessionClassification classification, Person coachee, Guid idCoachingProcess) { return _repositorySession.GetAllByClassificationAndCoacheeAndCoachingProcess(classification, coachee, idCoachingProcess); }
public List<Session> GetAllByClassification(ESessionClassification classification) { return _repositorySession.GetAllByClassification(classification); }
public CreateSessionCommand(CoachingProcess coachingProcess, string theme, User user, DateTime date, TimeSpan startTime, TimeSpan?endTime, ESessionClassification classification, string observation, ICollection <Job> job) { this.Theme = theme; this.Date = date; this.StartTime = startTime; this.EndTime = endTime; this.Classification = classification; this.CoachingProcess = coachingProcess; this.User = user; this.Observation = observation; this.Job = job; }
public List <Session> GetAllByClassificationAndCoachee(ESessionClassification classification, Person coachee) { return(_repositorySession.GetAllByClassificationAndCoachee(classification, coachee)); }
public List <Session> GetAllByClassification(ESessionClassification classification) { return(_repositorySession.GetAllByClassification(classification)); }
public static Expression<Func<Session, bool>> GetAllByTypeSession(ESessionClassification classification) { return x => x.Classification == classification; }
public UpdateSessionCommand(Guid id, CoachingProcess coachingProcess, string theme, User user, DateTime date, TimeSpan startTime, TimeSpan?endTime, ESessionClassification classification, string observation, ICollection <Job> job, ICollection <EvaluationCoach> coach, ICollection <EvaluationCoachee> coachee) { this.Id = id; this.Theme = theme; this.Date = date; this.StartTime = startTime; this.EndTime = endTime; this.Classification = classification; this.CoachingProcess = coachingProcess; this.User = user; this.Observation = observation; this.Job = job; this.Coach = coach; this.Coachee = coachee; }
public List <Session> GetAllByClassification(ESessionClassification classification) { return(_context.Session.Where(SessionSpecs.GetAllByTypeSession(classification)).ToList()); }
public List<Session> GetAllByClassificationAndCoachingProcess(ESessionClassification classification, Guid idCoachingProcess) { return _context.Session.Where(x => x.Classification == classification && x.IdCoachingProcess == idCoachingProcess).ToList(); }
public List <Session> GetAllByCoachAndCoacheeAndClassification(Person coach, Person coachee, ESessionClassification classification) { return(_repositorySession.GetAllByCoachAndCoacheeAndClassification(coach, coachee, classification)); }
public List<Session> GetAllByCoachAndCoacheeAndClassification(Person coach, Person coachee, ESessionClassification classification) { return _repositorySession.GetAllByCoachAndCoacheeAndClassification(coach, coachee, classification); }
public List <Session> GetAllByClassificationAndCoachAndCoachingProcess(ESessionClassification classification, Person coach, Guid idCoachinProcess) { return(_repositorySession.GetAllByClassificationAndCoachAndCoachingProcess(classification, coach, idCoachinProcess)); }
public List<Session> GetAllByClassificationAndCoachee(ESessionClassification classification, Person coachee) { return _repositorySession.GetAllByClassificationAndCoachee(classification, coachee); }
public List <Session> GetAllByCoachAndCoacheeAndClassificationAndCoachingProcess(Person coach, Person coachee, ESessionClassification classification, Guid idCoachingProcess) { return(_repositorySession.GetAllByCoachAndCoacheeAndClassificationAndCoachingProcess(coach, coachee, classification, idCoachingProcess)); }
public static Expression <Func <Session, bool> > GetAllByTypeSession(ESessionClassification classification) { return(x => x.Classification == classification); }
public List <Session> GetAllByClassificationAndCoachingProcess(ESessionClassification classification, Guid idCoachingProcess) { return(_context.Session.Where(x => x.Classification == classification && x.IdCoachingProcess == idCoachingProcess).ToList()); }