public async Task <ActionResult> Post([FromBody] WarehouseCreationDTO warehouseCreationDTO)
        {
            try
            {
                var warehouse = mapper.Map <WarehouseEntity>(warehouseCreationDTO);

                warehouse.Status = 1;

                await repository.AddWarehouseAsync(warehouse);

                var warehouseDTO = mapper.Map <WarehouseDTO>(warehouse);

                return(new CreatedAtRouteResult("getWarehouse", new { id = warehouse.WarehouseId }, warehouseDTO));
            }
            catch (Exception)
            {
                return(StatusCode(500));
            }
        }