Skip to content

Commit

Permalink
Remove ToString on domain models
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Guldborg committed Feb 15, 2024
1 parent aa35a8c commit 1abdca5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions Shifty.App/DomainModels/MenuItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public static UpdateMenuItemRequest ToUpdateRequest(MenuItem menuItem)
};
}

public override string ToString()
{
return Name;
}

public override bool Equals(object obj)
{
if (obj is not MenuItem)
Expand Down
5 changes: 0 additions & 5 deletions Shifty.App/DomainModels/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,5 @@ public static UpdateProductRequest ToUpdateRequest(Product product)
Price = product.Price,
};
}

public override string ToString()
{
return Name;
}
}
}

0 comments on commit 1abdca5

Please sign in to comment.