Skip to content

Commit ed429c2

Browse files
Merge
2 parents 0a50a2c + 394134f commit ed429c2

File tree

1 file changed

+6
-2
lines changed
  • src/SwiftLink.Domain/Entities

1 file changed

+6
-2
lines changed

src/SwiftLink.Domain/Entities/Link.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ public class Link : IEntity
1919
public string Password { get; set; }
2020
public List<Tags> Tags { get; set; }
2121
public ICollection<LinkVisit> LinkVisits { get; set; }
22-
23-
public void EnableLink() => IsDisabled = false;
22+
23+
public void Enable()
24+
=> IsDisabled = false;
25+
26+
public void Disable()
27+
=> IsDisabled = true;
2428
}
2529

2630
public class Tags

0 commit comments

Comments
 (0)