lab-7-hard preraring for pr

This commit is contained in:
Zakharov_Rostislav 2024-05-24 21:54:12 +04:00
parent ac978a60c4
commit 24948c52d1
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogics
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Document not found.");
return false;
}
if (CheckSupply(manufacture, element.Count) == false)
if (!CheckSupply(manufacture, element.Count))
{
_logger.LogWarning("Status update to " + status.ToString() + " operation failed. Shop supply error.");
status = OrderStatus.Ожидает;

View File

@ -57,7 +57,7 @@ namespace BlacksmithWorkshopRestApi.Controllers
}
}
[HttpGet]
public List<MessageInfoViewModel>? GetMessages(int clientId, int page, int pagesize = 1)
public List<MessageInfoViewModel>? GetMessages(int clientId, int page, int pagesize = 3)
{
try
{