public static bool CreateEvaluationCoacheeScopeIsValid(this EvaluationCoachee evaluationCoachee) { return(AssertionConcern.IsSatisfiedBy( AssertionConcern.AssertArgumentNotNull(evaluationCoachee.IdCoachee, Errors.CoacheeNotFound), AssertionConcern.AssertArgumentNotNull(evaluationCoachee.IdSession, Errors.SessionNotFound) )); }
public EvaluationCoachee Create(CreateEvaluationCoacheeCommand command) { var evaluation = new EvaluationCoachee(command.IdCoachee, command.IdSession, command.Evaluation, command.Observation); _repository.Create(evaluation); if (Commit()) return evaluation; return null; }
public EvaluationCoachee Create(CreateEvaluationCoacheeCommand command) { var evaluation = new EvaluationCoachee(command.IdCoachee, command.IdSession, command.Evaluation, command.Observation); _repository.Create(evaluation); if (Commit()) { return(evaluation); } return(null); }
public void Update(EvaluationCoachee Evaluation) { _context.Entry<EvaluationCoachee>(Evaluation).State = EntityState.Modified; }
public void Delete(EvaluationCoachee evaluation) { _context.EvaluationCoachee.Remove(evaluation); }
public void Create(EvaluationCoachee evaluation) { _context.EvaluationCoachee.Add(evaluation); }
public static bool ChangeEvaluationScopeIsValid(this EvaluationCoachee evaluationCoach, int?evaluation) { return(AssertionConcern.IsSatisfiedBy( AssertionConcern.AssertArgumentNotNull(evaluation, Errors.InvalidEvaluation) )); }
public void Update(EvaluationCoachee Evaluation) { _context.Entry <EvaluationCoachee>(Evaluation).State = EntityState.Modified; }