public async Task <ActionResult> DeleteBinType(int id)
        {
            var binType = await _binTypeRepository.GetBinTypeById(id);

            if (binType != null)
            {
                _binTypeRepository.DeleteBinType(binType);
            }

            if (await _binTypeRepository.SaveAllAsync())
            {
                return(Ok());
            }

            return(BadRequest("Failed to delete bin type."));
        }