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();
 }
Exemplo n.º 8
0
 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);
 }
Exemplo n.º 11
0
 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));
 }
Exemplo n.º 14
0
 public static Expression<Func<Session, bool>> GetAllByTypeSession(ESessionClassification classification)
 {
     return x => x.Classification == classification;
 }
Exemplo n.º 15
0
 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;
 }
Exemplo n.º 16
0
 public List <Session> GetAllByClassification(ESessionClassification classification)
 {
     return(_context.Session.Where(SessionSpecs.GetAllByTypeSession(classification)).ToList());
 }
Exemplo n.º 17
0
 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));
 }
Exemplo n.º 23
0
 public static Expression <Func <Session, bool> > GetAllByTypeSession(ESessionClassification classification)
 {
     return(x => x.Classification == classification);
 }
Exemplo n.º 24
0
 public List <Session> GetAllByClassificationAndCoachingProcess(ESessionClassification classification, Guid idCoachingProcess)
 {
     return(_context.Session.Where(x => x.Classification == classification && x.IdCoachingProcess == idCoachingProcess).ToList());
 }