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);
 }