public Coach Create(CreateCoachCommand command)
        {
            var coach = new Coach(command.IdUser, command.EvaluationTool, command.Speciality, command.Formation, command.CoachingProcess);
            _repository.Create(coach);

            if (Commit())
                return coach;

            return null;
        }
Пример #2
0
 public void Update(Coach coach)
 {
     _context.Entry<Coach>(coach).State = System.Data.Entity.EntityState.Modified;
 }
Пример #3
0
 public void Delete(Coach coach)
 {
     _context.Coach.Remove(coach);
 }
Пример #4
0
 public void Create(Coach coach)
 {
     _context.Coach.Add(coach);
 }