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);
 }
Esempio n. 5
0
 public void RemoveStrongPoint(StrongPoint strongPoint)
 {
     this.StrongPoint.Remove(strongPoint);
 }
Esempio n. 6
0
 public void AddStrongPoint(StrongPoint strongPoint)
 {
     strongPoint.Validate();
     this.StrongPoint.Add(strongPoint);
 }
Esempio n. 7
0
 public void RemoveStrongPoint(StrongPoint strongPoint)
 {
     this.StrongPoint.Remove(strongPoint);
 }
Esempio n. 8
0
 public void AddStrongPoint(StrongPoint strongPoint)
 {
     strongPoint.Validate();
     this.StrongPoint.Add(strongPoint);
 }