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; }
public void Update(Coach coach) { _context.Entry<Coach>(coach).State = System.Data.Entity.EntityState.Modified; }
public void Delete(Coach coach) { _context.Coach.Remove(coach); }
public void Create(Coach coach) { _context.Coach.Add(coach); }