2024-09-01 12:28:42 +03:30
|
|
|
|
namespace Netina.Domain.Entities.Reviews;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class Review
|
|
|
|
|
|
{
|
2024-09-21 20:51:01 +03:30
|
|
|
|
public static Reviews.Review Create(string title, string comment, float rate, bool isBuyer,bool isAdmin, Guid productId, Guid userId)
|
2024-09-01 12:28:42 +03:30
|
|
|
|
{
|
2024-09-21 20:51:01 +03:30
|
|
|
|
return new Reviews.Review(title, comment, rate, isBuyer,isAdmin, productId, userId);
|
2024-09-01 12:28:42 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void ConfirmReview()
|
|
|
|
|
|
=> IsConfirmed = true;
|
|
|
|
|
|
}
|