public Objective Create(CreateObjectiveCommand command) { var service = new Objective(command.Description, command.Term, command.Mark); service.Validate(); _repository.Create(service); if (Commit()) return service; return null; }
public void Delete(Objective Objective) { _context.Objective.Remove(Objective); }
public void Update(Objective Objective) { _context.Entry<Objective>(Objective).State = EntityState.Modified; }
public void Create(Objective Objective) { _context.Objective.Add(Objective); }