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