public StrongPoint Create(CreateStrongPointCommand command)
        {
            var StrongPoint = new StrongPoint(command.Name, command.Class, command.Description);
            StrongPoint.Validate();
            _repository.Create(StrongPoint);

            if (Commit())
                return StrongPoint;

            return null;
        }
 public void Update(StrongPoint strongPoint)
 {
     _context.Entry<StrongPoint>(strongPoint).State = System.Data.Entity.EntityState.Modified;
 }
 public void Delete(StrongPoint strongPoint)
 {
     _context.StrongPoint.Remove(strongPoint);
 }
 public void Create(StrongPoint StrongPoint)
 {
     _context.StrongPoint.Add(StrongPoint);
 }
Пример #5
0
 public void RemoveStrongPoint(StrongPoint strongPoint)
 {
     this.StrongPoint.Remove(strongPoint);
 }
Пример #6
0
 public void AddStrongPoint(StrongPoint strongPoint)
 {
     strongPoint.Validate();
     this.StrongPoint.Add(strongPoint);
 }
Пример #7
0
 public void RemoveStrongPoint(StrongPoint strongPoint)
 {
     this.StrongPoint.Remove(strongPoint);
 }
Пример #8
0
 public void AddStrongPoint(StrongPoint strongPoint)
 {
     strongPoint.Validate();
     this.StrongPoint.Add(strongPoint);
 }