Ready to deploy
This commit is contained in:
@@ -87,6 +87,9 @@ namespace InventoryTraker.Web.Controllers
|
||||
if (!ModelState.IsValid)
|
||||
return GetModelStateErrorListJson();
|
||||
|
||||
if (form.InventoryQuantities == null || !form.InventoryQuantities.Any())
|
||||
return GetErrorListJson("Must add at least one item");
|
||||
|
||||
var errors = new List<string>();
|
||||
|
||||
foreach (var quantityForm in form.InventoryQuantities)
|
||||
|
||||
Reference in New Issue
Block a user