Closed sanctusmob closed 1 year ago
You can check if ID exists for entities and for images via head request.
ex. blExists = manufacturerFactory.CheckIfExists(lngManufacturerID); blExists = productFactory.CheckIfExists(lngProductID); blExists = imageFactory.CheckIfExistsCategoryImage(lngCategoryID); blExists = imageFactory.CheckIfExistsManufacturerImage(lngManufacturerID); blExists = imageFactory.CheckIfExistsProductImage(lngProductID, lngImageID); blExists = imageFactory.CheckIfExistsProductImage(lngProductID, null);
Hi @sanctusmob
I approve this PR. Cool & efficient idea to check if an entity exists using the HEAD method LGTM🚀
You can check if ID exists for entities and for images via head request.
ex. blExists = manufacturerFactory.CheckIfExists(lngManufacturerID); blExists = productFactory.CheckIfExists(lngProductID); blExists = imageFactory.CheckIfExistsCategoryImage(lngCategoryID); blExists = imageFactory.CheckIfExistsManufacturerImage(lngManufacturerID); blExists = imageFactory.CheckIfExistsProductImage(lngProductID, lngImageID); blExists = imageFactory.CheckIfExistsProductImage(lngProductID, null);