public async Task <ActionResult> Delete(int id)
        {
            var exists = await repository.GetWarehouseByIdAsync(id);

            if (exists == null)
            {
                return(NotFound());
            }

            await repository.DeleteWarehouseAsync(id);

            return(NoContent());
        }