public FilledToolCoach Create(CreateFilledToolCoachCommand command)
        {
            var service = new FilledToolCoach(command.EvaluationDate, command.IdEvaluationTool, command.idCoachingProcess, command.IdCoach);

            service.Validate();
            _repository.Create(service);

            if (Commit())
            {
                return(service);
            }

            return(null);
        }
예제 #2
0
 public void Delete(FilledToolCoach FilledTool)
 {
     _context.FilledToolCoach.Remove(FilledTool);
 }
예제 #3
0
 public void Update(FilledToolCoach FilledTool)
 {
     _context.Entry <FilledToolCoach>(FilledTool).State = EntityState.Modified;
 }
예제 #4
0
 public void Create(FilledToolCoach FilledTool)
 {
     _context.FilledToolCoach.Add(FilledTool);
 }