コード例 #1
0
        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;
        }
コード例 #2
0
 public void Delete(Objective Objective)
 {
     _context.Objective.Remove(Objective);
 }
コード例 #3
0
 public void Update(Objective Objective)
 {
     _context.Entry<Objective>(Objective).State = EntityState.Modified;
 }
コード例 #4
0
 public void Create(Objective Objective)
 {
     _context.Objective.Add(Objective);
 }