This commit is contained in:
Kukks
2024-04-25 11:51:43 +02:00
parent f7cf0899ec
commit 6e95ddb8b1
8 changed files with 296 additions and 53 deletions

View File

@@ -159,9 +159,9 @@ public class SubscriptionController : Controller
ModelState.AddModelError(nameof(vm.Price), "Price must be greater than 0");
}
if (vm.DurationDays <= 0)
if (vm.Duration <= 0)
{
ModelState.AddModelError(nameof(vm.DurationDays), "Duration must be greater than 0");
ModelState.AddModelError(nameof(vm.Duration), "Duration must be greater than 0");
}